Sihl_queue_core.JobInstanceSourceThis 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.
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;}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 ->
tval create :
input:'a ->
delay:Sihl_utils.Time.duration option ->
now:Ptime.t ->
'a Sihl_queue_core__.Model.Job.t ->
t