Skip to content

Commit

Permalink
ensure last_heartbeat_at on dequeue
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcountryman committed Nov 10, 2024
1 parent ec634b4 commit 01cb957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,9 @@ impl<T: Task> Queue<T> {
InProgressTask,
r#"
update underway.task
set state = $3, last_attempt_at = now()
set state = $3,
last_attempt_at = now(),
last_heartbeat_at = now()
where id = (
select id
from underway.task
Expand Down

0 comments on commit 01cb957

Please sign in to comment.