-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add information about queue and priority #345
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #345 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 32 32
Lines 459 459
Branches 23 23
=========================================
Hits 459 459
☔ View full report in Codecov by Sentry. |
I am wonderin' why did u choose to use classes, including classes' members, at the level of the receivers ? |
@mohamedTbarka it is not finished but I will have to store data somewhere between "receiver_before_task_publish" and "receiver_after_task_publish" the value of priority is available in the first but I want to use it in the second. I did not want to store the value in a global variable. Do you think this is a bad idea? |
@jrobichaud, I think it's slickly done; I needed just a clarification 🙏 |
I discovered two things about signals:
|
@jrobichaud, thank u a lot for the clarifications 🙏. I think I need to play more with the signals to grasp why such behavior exists 🤔 |
Since it seems like people are watching me working on this, what is your opinion about logging or not |
I would say Yes, because sometimes, task is enqueued and queues are full, I would like to know the content of any desired queue and I can do that if I have |
@badziyoussef thanks for the concrete example. Anything else from before_task_publish or after_task_publish would be useful to be added to the |
Todo:
task_routing_key
andtask_properties
tomodify_context_before_task_publish
task_enqueued
Closes #341