php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

worker shutdown handling

Open scones opened this issue 7 years ago • 1 comments

updated for wrong assumption

feature

please make the signal handling configurable per signal. i'd like the handling of shutdown on SIGINT and SIGTERM, instead of a hard exit to make sure no data is lost. Since i plan to scale my workers through docker scaling, the workers within the containers will receive a SIGTERM on downscaling, on which i'd like to wait for the job to finish before closing the worker.

scones avatar Dec 28 '17 14:12 scones

Seems a lot of work, if you want to make a PR, I will appreciate to make a review :D ;)

merlindorin avatar Jan 08 '18 11:01 merlindorin