mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-12 23:43:57 +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((
|
.set((
|
||||||
heartbeat.eq(Option::<time::PrimitiveDateTime>::None),
|
heartbeat.eq(Option::<time::PrimitiveDateTime>::None),
|
||||||
status.eq(JobStatus::New),
|
status.eq(JobStatus::New),
|
||||||
|
worker.eq(Option::<Uuid>::None),
|
||||||
))
|
))
|
||||||
.execute(&mut conn)
|
.execute(&mut conn)
|
||||||
.with_metrics("pict-rs.postgres.queue.requeue")
|
.with_metrics("pict-rs.postgres.queue.requeue")
|
||||||
|
|
Loading…
Reference in a new issue