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 : Base.string;
  2. with_context : Core.Ctx.t -> Core.Ctx.t;
  3. work : Core.Ctx.t -> input:Base.string Base.option -> (Base.unit, Base.string) Base.Result.t Lwt.t;
  4. failed : Core.Ctx.t -> (Base.unit, Base.string) Base.Result.t Lwt.t;
  5. max_tries : Base.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 -> Base.int
val failed : t -> Core.Ctx.t -> (Base.unit, Base.string) Base.Result.t Lwt.t
val work : t -> Core.Ctx.t -> input:Base.string Base.option -> (Base.unit, Base.string) Base.Result.t Lwt.t
val with_context : t -> Core.Ctx.t -> Core.Ctx.t
val name : t -> Base.string
module Fields : sig ... end
val of_job : 'a Queue__.Queue_core.Job.t -> t
OCaml

Innovation. Community. Security.