tobymao / saq

Simple Async Queues
https://saq-py.readthedocs.io/en/latest/
MIT License
585 stars 41 forks source link

Clean up signal handlers after shutdown event is triggered #55

Closed jnordberg closed 1 year ago

jnordberg commented 1 year ago

This allows subsequent signals to propagate after the shutdown is triggered. Useful when debugging since you might have some other tasks that didn't finish you want to stop (read spam CTRL-C 😄), without this patch only way to stop the python program is to send a SIGKILL