You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have celery snippets as follows:
first define the Task Class in celery_tasks.tasks.py
then implement the methods in from consumers.logger
a function in celery_tasks.utils to create celery workers and consumers
where the celery setting put in django setting.py file is:
finally, I instantiate them as two consumers
then it is not working, I tried to comment out performance_measure and leave only logger like:
then logger works properly.
I also tried comment out logger and leave only performance_measure like:
then performance_measure works properly.
so only one consumer is working properly fine, but two together are not.
There is an error and message stucked in message queue without consuming when two of them are working together.
by the way, the publisher usage is like
How can I make two of them work?
Thanks a lot ahead.
Beta Was this translation helpful? Give feedback.
All reactions