package sihl

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

Module Sihl_queue_core.WorkableJobSource

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

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_utils.Time.duration;
}
Sourceval retry_delay : t -> Sihl_utils.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 Sihl_queue_core__.Model.Job.t -> t
OCaml

Innovation. Community. Security.