package sihl
The modular functional web framework
Install
Dune Dependency
Authors
Maintainers
Sources
sihl-queue-0.1.5.tbz
sha256=bfa7bde9af02bb83d5ca39d54797b05b43317f033d93d24ca86ca42ff8ef83a1
sha512=6bb8727f65116e8042aa1fb77b3c14851ce5238f7b412adadf0f8e5b52d5310e8f06056c96bf76a82ffd7096753f49b2b0482f41e18ee1ca94310b874fe81bf9
doc/sihl.queue/Queue/Sig/Job/index.html
Module Sig.Job
This is the description of a job. A job dispatch is a job description and some arguments/input.
val default_retry_delay : Utils.Time.duration
type 'a t = {
name : string;
with_context : Core.Ctx.t -> Core.Ctx.t;
input_to_string : 'a -> string option;
string_to_input : string option -> ('a, string) Result.t;
handle : Core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t;
failed : Core.Ctx.t -> (unit, string) Result.t Lwt.t;
max_tries : int;
retry_delay : 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.unit
val show :
'a. (Ppx_deriving_runtime.Format.formatter ->
'a ->
Ppx_deriving_runtime.unit) ->
'a t ->
Ppx_deriving_runtime.string
val retry_delay : 'a t -> Utils.Time.duration
val max_tries : 'a t -> int
val failed : 'a t -> Core.Ctx.t -> (unit, string) Result.t Lwt.t
val handle : 'a t -> Core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t
val input_to_string : 'a t -> 'a -> string option
val with_context : 'a t -> Core.Ctx.t -> Core.Ctx.t
val name : 'a t -> string
module Fields : sig ... end
val create :
name:string ->
?with_context:(Core.Ctx.t -> Core.Ctx.t) ->
input_to_string:('a -> string option) ->
string_to_input:(string option -> ('a, string) Result.t) ->
handle:(Core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t) ->
?failed:(Core.Ctx.t -> (unit, string) Lwt_result.t) ->
unit ->
'a t
val set_retry_delay : Utils.Time.duration -> 'a t -> 'a t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>