guerilla icon indicating copy to clipboard operation
guerilla copied to clipboard

Jobs can be in limbo after a worker failure

Open BruceBGordon opened this issue 9 years ago • 1 comments

When a worker fails (cancelled for example), a job can be on stuck on the queue. A mildly effective fix would be for a worker at startup to see if any jobs are assigned to it and mark them as cancelled.

BruceBGordon avatar Nov 06 '15 16:11 BruceBGordon

Agreed. So my idea for this was to have a Cleanup class that would have multiple functions including one that did exactly what you mentioned. Another function would be to remove files from the disk for jobs that no longer exist. These functions would be called on startup and could also be called on some schedule.

thekushpatel avatar Nov 06 '15 16:11 thekushpatel