package sihl-type

  1. Overview
  2. Docs

Module Sihl_type.Queue_workable_jobSource

Sourcetype t = {
  1. name : string;
  2. work : input:string option -> (unit, string) Result.t Lwt.t;
  3. failed : unit -> (unit, string) Result.t Lwt.t;
  4. max_tries : int;
  5. retry_delay : Sihl_core.Time.duration;
}

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).

Sourceval retry_delay : t -> Sihl_core.Time.duration
Sourceval max_tries : t -> int
Sourceval failed : t -> unit -> (unit, string) Result.t Lwt.t
Sourceval work : t -> input:string option -> (unit, string) Result.t Lwt.t
Sourceval name : t -> string
Sourcemodule Fields : sig ... end
Sourceval of_job : 'a Queue_job.t -> t
OCaml

Innovation. Community. Security.