humanmade / humanmade/Cavalcade
Catch orphaned "running" jobs from MIA workers
- Dominant language
- PHP
- Stars
- 542
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Similar to #18, we ran into an issue on WordPress.org where one of cavalcade daemons was killed unexpectantly which left a bunch of jobs in an unknown state.
The jobs were marked as running, but there were no workers to manage those jobs anymore. This resulted in jobs not running for a few hours/days until they were detected and restarted.
There should be some way for a job to be detected as no-longer-running or that it's daemon is MIA.
In this case, I simply restarted the jobs: `UPDATE wp_cavalcade_jobs SET status = 'waiting' WHERE status = 'running' AND nextrun <= '2016-12-06'`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.