Actions
action #1711
closedcleanup jobs of dead workers
Description
sometimes workers may crash, leaving the job in e.g. running state. since workers ping the webui every second, updating their table row there should be a job that periodically checks for workers that are no longer active.
Updated by lnussel almost 11 years ago
- Assignee set to mlin7442
- Target version set to Sprint 03
Updated by lnussel almost 11 years ago
Max, I think the detection of the dead worker could be more easily done with a database query, isn't it? Ie select running jobs, join with workers and select the rows where the t_updated is older than some threshold.
You cannot use job_cancel as that one inserts a command for the worker if a worker is assigned. You need to use job_set_done and job_duplicate instead.
Updated by mlin7442 almost 11 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 100
ok, $threshold, job_set_done and job_duplicate are there now. I'll polish it later with a database query.
Actions