package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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

val default_tries : int
val default_retry_delay : Utils.Time.duration
type '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;
}
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 -> Base.int
val failed : 'a t -> Core.Ctx.t -> (Base.unit, Base.string) Base.Result.t Lwt.t
val handle : 'a t -> Core.Ctx.t -> input:'a -> (Base.unit, Base.string) Base.Result.t Lwt.t
val string_to_input : 'a t -> Base.string Base.option -> ('a, Base.string) Base.Result.t
val input_to_string : 'a t -> 'a -> Base.string Base.option
val with_context : 'a t -> Core.Ctx.t -> Core.Ctx.t
val name : 'a t -> Base.string
module Fields : sig ... end
val 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
val set_max_tries : Base.int -> 'a t -> 'a t
val set_retry_delay : Utils.Time.duration -> 'a t -> 'a t
OCaml

Innovation. Community. Security.