package sihl
Module Sihl_queue_core.JobInstanceSource
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.
Source
type t = {id : Sihl_database.Id.t;name : string;input : string option;tries : int;next_run_at : Ptime.t;max_tries : int;status : Status.t;
}Source
val make :
id:Sihl_database.Id.t ->
name:string ->
?input:string ->
tries:int ->
next_run_at:Ptime.t ->
max_tries:int ->
status:Status.t ->
unit ->
tSource
val create :
input:'a ->
delay:Sihl_utils.Time.duration option ->
now:Ptime.t ->
'a Sihl_queue_core__.Model.Job.t ->
t