2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +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(( .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")