package sihl-queue

  1. Overview
  2. Docs

Module Sihl_queue.MakeSource

Parameters

module Repo : sig ... end

Signature

Sourceval dispatch : 'a Sihl__.Contract_queue.t -> ?delay:Sihl__.Core_time.duration -> 'a -> unit Lwt.t

dispatch job ?delay input queues job for processing while input input is the input that the job needs to run. Use delay to run the job earliest after a certain amount of time.

Sourceval register_jobs : 'a Sihl__.Contract_queue.t list -> unit Lwt.t

register_jobs jobs registers jobs that can be dispatched.

Only registered jobs can be dispatched. Dispatching a job that was not registered does nothing.

Sourceval register : ?jobs:'a Sihl__.Contract_queue.t list -> unit -> Sihl__.Core_container.Service.t
Sourceval lifecycle : Sihl__.Core_container.lifecycle
OCaml

Innovation. Community. Security.