taskiq-python / taskiq

Distributed task queue with full async support
MIT License
866 stars 52 forks source link

Added correct graceful shutdown. #381

Closed s3rius closed 3 days ago

s3rius commented 3 days ago

Fixes https://github.com/taskiq-python/taskiq/issues/380 Fixes https://github.com/taskiq-python/taskiq/issues/325

This PR rewrites graceful shutdowns completely and now it should be able to gracefully wait for all tasks to complete and implement proper reloading.

codecov-commenter commented 3 days ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 48.27586% with 15 lines in your changes missing coverage. Please review.

Project coverage is 77.40%. Comparing base (317c1d9) to head (3dd6cdd).

Files with missing lines Patch % Lines
taskiq/cli/worker/run.py 0.00% 11 Missing :warning:
taskiq/receiver/receiver.py 80.00% 3 Missing :warning:
taskiq/api/receiver.py 66.66% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #381 +/- ## ========================================== + Coverage 73.16% 77.40% +4.23% ========================================== Files 62 62 Lines 1871 1890 +19 ========================================== + Hits 1369 1463 +94 + Misses 502 427 -75 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: