humanmade / Cavalcade

A better wp-cron. Horizontally scalable, works perfectly with multisite.
https://engineering.hmn.md/projects/cavalcade/
Other
519 stars 46 forks source link

Ignore SIGTERM when a job is running #20

Closed joehoyle closed 8 years ago

joehoyle commented 8 years ago

If the daemon for Cavalcade is shutdown, SIGTERM get's sent to all running child processes, which we want to ignore as we don't want to stop the job part way through. As the process will only be doing the single job and then quitting, we can just ignore the signal.