package sihl

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

Module Queue.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 : 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;
}
Sourceval retry_delay : t -> Utils.Time.duration
Sourceval max_tries : t -> Base.int
Sourceval with_context : t -> Core.Ctx.t -> Core.Ctx.t
Sourceval name : t -> Base.string
Sourcemodule Fields : sig ... end
Sourceval of_job : 'a Queue__.Queue_core.Job.t -> t
OCaml

Innovation. Community. Security.