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.
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.