package sihl

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

A workable job can process a job instance that is persisted. We can not store the job directly because of the polymorphic type ('a Job.t).

type t = {
  1. name : string;
  2. with_context : Core.Ctx.t -> Core.Ctx.t;
  3. work : Core.Ctx.t -> input:string option -> (unit, string) Stdlib.Result.t Lwt.t;
  4. failed : Core.Ctx.t -> (unit, string) Stdlib.Result.t Lwt.t;
  5. max_tries : int;
  6. retry_delay : Utils.Time.duration;
}
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val retry_delay : t -> Utils.Time.duration
val max_tries : t -> int
val failed : t -> Core.Ctx.t -> (unit, string) Stdlib.Result.t Lwt.t
val work : t -> Core.Ctx.t -> input:string option -> (unit, string) Stdlib.Result.t Lwt.t
val with_context : t -> Core.Ctx.t -> Core.Ctx.t
val name : t -> string
module Fields : sig ... end
val of_job : 'a Queue__.Model.Job.t -> t
OCaml

Innovation. Community. Security.