Oban.Worker
oban · API reference
Perform claimed jobs and choose their outcomes.
type outcome =
| Ok
| Error of string
| Cancel of string
| Snooze of floattype timeout =
| Unlimited
| After of float (* Positive finite clock seconds. *)module type S = sig ... endtype packed =
| Pack : (module S) -> packedval default_backoff : Job.executing Job.t -> floatExponential backoff from 15 seconds, capped at one day.
val default_timeout : Job.executing Job.t -> timeoutUnlimited.
val pack : (module S) -> packedval name : packed -> Job.worker_nameval perform : packed -> Job.executing Job.t -> outcomeval backoff : packed -> Job.executing Job.t -> floatval timeout : packed -> Job.executing Job.t -> timeout