2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-09 22:14:59 +00:00

Set worker-id to None when marking a job as runnable after expired heartbeats

This commit is contained in:
asonix 2024-01-04 10:29:37 -06:00
parent e4e5aad215
commit 7d4f44a540

View file

@ -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")