package sihl
Module Sig.Job
val default_retry_delay : Sihl_utils.Time.durationtype 'a t = {name : string;with_context : Sihl_core.Ctx.t -> Sihl_core.Ctx.t;input_to_string : 'a -> string option;string_to_input : string option -> ('a, string) Result.t;handle : Sihl_core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t;failed : Sihl_core.Ctx.t -> (unit, string) Result.t Lwt.t;max_tries : int;retry_delay : Sihl_utils.Time.duration;
}val pp :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
Ppx_deriving_runtime.Format.formatter ->
'a t ->
Ppx_deriving_runtime.unitval show :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
'a t ->
Ppx_deriving_runtime.stringval retry_delay : 'a t -> Sihl_utils.Time.durationval max_tries : 'a t -> intval failed : 'a t -> Sihl_core.Ctx.t -> (unit, string) Result.t Lwt.tval handle :
'a t ->
Sihl_core.Ctx.t ->
input:'a ->
(unit, string) Result.t Lwt.tval input_to_string : 'a t -> 'a -> string optionval with_context : 'a t -> Sihl_core.Ctx.t -> Sihl_core.Ctx.tval name : 'a t -> stringmodule Fields : sig ... endval create :
name:string ->
?with_context:(Sihl_core.Ctx.t -> Sihl_core.Ctx.t) ->
input_to_string:('a -> string option) ->
string_to_input:(string option -> ('a, string) Result.t) ->
handle:(Sihl_core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t) ->
?failed:(Sihl_core.Ctx.t -> (unit, string) Lwt_result.t) ->
unit ->
'a tval set_retry_delay : Sihl_utils.Time.duration -> 'a t -> 'a t