closeio / tasktiger

Python task queue using Redis
MIT License
1.41k stars 80 forks source link

Stop heartbeat thread in case of unhandled exceptions. #335

Closed thomasst closed 3 months ago

thomasst commented 4 months ago

Fixes process hanging due to heartbeat thread not being stopped if a task raises SystemExit or something else derived from BaseException that isn't JobTimeoutException. Or if something goes wrong after task execution completed.