taskiq-python / taskiq-redis

Broker and result backend for taskiq
MIT License
40 stars 18 forks source link

feat(broker): allow to set queue name dynamically when kicking #52

Closed realitix closed 9 months ago

realitix commented 9 months ago

Hello,

In some case, it can be very useful to set the queue_name directly in the label. If we have several workers with different configurationse this avoids the need to create a broker and a scheduler for each type of worker. Instead, by putting the queue_name in the labels, the task will automatically be sent to the correct worker. And therefore a single scheduler can send the task to several workers.

codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (09e835e) 96.31% compared to head (41fe84a) 96.34%. Report is 4 commits behind head on develop.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #52 +/- ## =========================================== + Coverage 96.31% 96.34% +0.03% =========================================== Files 7 7 Lines 217 219 +2 =========================================== + Hits 209 211 +2 Misses 8 8 ```

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