Hacker News new | ask | show | jobs
by 0cf8612b2e1e 864 days ago
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.