mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-24 10:31:07 +00:00
Set worker-id to None when marking a job as runnable after expired heartbeats
This commit is contained in:
parent
e4e5aad215
commit
7d4f44a540
1 changed files with 1 additions and 0 deletions
|
@ -1167,6 +1167,7 @@ impl QueueRepo for PostgresRepo {
|
|||
.set((
|
||||
heartbeat.eq(Option::<time::PrimitiveDateTime>::None),
|
||||
status.eq(JobStatus::New),
|
||||
worker.eq(Option::<Uuid>::None),
|
||||
))
|
||||
.execute(&mut conn)
|
||||
.with_metrics("pict-rs.postgres.queue.requeue")
|
||||
|
|
Loading…
Reference in a new issue