package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-0.1.4.tbz
sha256=49fe887d05083b37523cd6e7ca35239822c561fe7109dd383c30aeb4259a7b98
sha512=4135ad42a75fb9adc3e853a466b696d9ee6d7a9d8acf0cee9fd5f5485679a517f524ce704e2d153df4a7c4f1d14df9f94ab2a8fbe5b36e744b505daab1d40f3d

doc/sihl.queue/Queue/Job/index.html

Module Queue.JobSource

This is the description of a job. A job dispatch is a job description and some arguments/input.

Sourceval default_tries : int
Sourceval default_retry_delay : Utils.Time.duration
Sourcetype 'a t = {
  1. name : Base.string;
  2. with_context : Core.Ctx.t -> Core.Ctx.t;
  3. input_to_string : 'a -> Base.string Base.option;
  4. string_to_input : Base.string Base.option -> ('a, Base.string) Base.Result.t;
  5. handle : Core.Ctx.t -> input:'a -> (Base.unit, Base.string) Base.Result.t Lwt.t;
  6. failed : Core.Ctx.t -> (Base.unit, Base.string) Base.Result.t Lwt.t;
  7. max_tries : Base.int;
  8. retry_delay : Utils.Time.duration;
}
Sourceval retry_delay : 'a t -> Utils.Time.duration
Sourceval max_tries : 'a t -> Base.int
Sourceval failed : 'a t -> Core.Ctx.t -> (Base.unit, Base.string) Base.Result.t Lwt.t
Sourceval handle : 'a t -> Core.Ctx.t -> input:'a -> (Base.unit, Base.string) Base.Result.t Lwt.t
Sourceval string_to_input : 'a t -> Base.string Base.option -> ('a, Base.string) Base.Result.t
Sourceval input_to_string : 'a t -> 'a -> Base.string Base.option
Sourceval with_context : 'a t -> Core.Ctx.t -> Core.Ctx.t
Sourceval name : 'a t -> Base.string
Sourcemodule Fields : sig ... end
Sourceval create : name:Base.string -> ?with_context:(Core.Ctx.t -> Core.Ctx.t) -> input_to_string:('a -> Base.string Base.option) -> string_to_input:(Base.string Base.option -> ('a, Base.string) Base.Result.t) -> handle: (Core.Ctx.t -> input:'a -> (Base.unit, Base.string) Base.Result.t Lwt.t) -> ?failed:(Core.Ctx.t -> (Base.unit, Base.string) Lwt_result.t) -> unit -> 'a t
Sourceval set_max_tries : Base.int -> 'a t -> 'a t
Sourceval set_retry_delay : Utils.Time.duration -> 'a t -> 'a t
OCaml

Innovation. Community. Security.