package sihl

  1. Overview
  2. Docs
The modular functional web framework

Install

Dune Dependency

Authors

Maintainers

Sources

sihl-0.1.1.tbz
sha256=eac58e5ee9c869aa3b0f0bcee936b01c53bf7fe1febb42edd607268dfb11f4e9
sha512=012b6cf1cf6af0966059761b4916ea8aa590aa8d5809a6f480cb17e23ee10c3b9245062c4f0cf9ad98ab950391c0827c9780999d39fa16a93f7aab4b12f9ab8c

doc/sihl.queue/Queue/index.html

Module QueueSource

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

Sourcemodule Service : sig ... end
Sourcemodule JobInstance : sig ... end

This is the actual job instance that is derived from the job description 'a Job.t and some input. This needs to be serialized and persisted for persistent job queues.

Sourcemodule WorkableJob : sig ... end

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 create_job : name:string -> ?with_context:(Core.Ctx.t -> Core.Ctx.t) -> input_to_string:('a -> string option) -> string_to_input:(string option -> ('a, string) Result.t) -> handle:(Core.Ctx.t -> input:'a -> (unit, string) Result.t Lwt.t) -> ?failed:(Core.Ctx.t -> (unit, string) Result.t Lwt.t) -> unit -> 'a Queue__.Queue_core.Job.t
Sourceval set_max_tries : int -> 'a Queue__.Queue_core.Job.t -> 'a Queue__.Queue_core.Job.t
Sourceval set_retry_delay : Utils.Time.duration -> 'a Queue__.Queue_core.Job.t -> 'a Queue__.Queue_core.Job.t
OCaml

Innovation. Community. Security.