Hacker News new | ask | show | jobs
by mulmen 865 days ago
What happens when the backend worker dies while processing?
1 comments

Usual way is you update the table with a timestamp when the task was taken. Have one periodic job which queries the table looking for tasks that have outlived the maximum allowed processing time and reset the status so the task is available to be requeued.