mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +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