package sihl

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

This module provides a job queue. This is typically used for long-running or resource intensive tasks.

module Core = Sihl_core
module Utils = Sihl_utils
module Job : sig ... end
module JobInstance : sig ... end
module WorkableJob : sig ... end
module Sig : sig ... end
val create_job : name:string -> input_to_string:('a -> string option) -> string_to_input:(string option -> ('a, string) Stdlib.Result.t) -> handle:(input:'a -> (unit, string) Stdlib.Result.t Lwt.t) -> ?failed:(unit -> (unit, string) Stdlib.Result.t Lwt.t) -> unit -> 'a Sihl_queue_core__.Model.Job.t
val set_max_tries : int -> 'a Sihl_queue_core__.Model.Job.t -> 'a Sihl_queue_core__.Model.Job.t
val set_retry_delay : Utils.Time.duration -> 'a Sihl_queue_core__.Model.Job.t -> 'a Sihl_queue_core__.Model.Job.t
OCaml

Innovation. Community. Security.