-
these files are shared to faciliate troubleshooting an issue described in the below link: https://stackoverflow.com/questions/45784824/worker-does-not-consume-tasks-after-celery-add-consumer-is-called
-
start workers
celery@high1woka
andcelery@default1woka
celery -A foo worker -l info -Q default -n default1woka -b amqp://guest@localhost:5672// -Ofair -c 2 --pool=eventlet
celery -A foo worker -l info -Q high -n high1woka -b amqp://guest@localhost:5672// -Ofair -c 1 --pool=solo
-
monitor celery and rabbitmq
flower -A foo --port=5555 --broker=amqp://guest@localhost:5672//
-
python dostuff.py
- produces tasks to queuesdefault
andhigh
-
python cancel.py
- cancels consumption of tasks from queuehigh
for workercelery@high1woka
-
check that
celery@high1woka
logged that consumption from queuehigh
is stopped. -
python dostuff.py
- produces tasks to queuesdefault
andhigh
-
python resume.py
- request workercelery@high1woka
to resume consumption of tasks from qeueuehigh
. -
ISSUE occurs here.
celery@high1woka
is not consuming tasks from queuehigh
. -
if worker
celery@high1woka
is restarted, worker starts to consume tasks
Note: for windows OS in \Lib\site-packages\billiard\py3\connection.py, update line 32 to "except AttributeError:".
--
- updating celery : pip install celery==4.1.0
- updating billiard/spawn.py : encasulate line 338 to 339 with
try: except: pass
- (optional) install eventlet: pip install eventlet==0.22.1
- adding
--pool=eventlet
or--pool=solo
when starting workers per comment in celery/celery#4178
current finding:
likely same issue discussed here:
celery/celery#4817
monkey patch? tried enabling moneky patch but then luigi tasks will not exit.
http://www.gevent.org/api/gevent.monkey.html
after some trial and error, workers seems to be running with the below set of libs.
celery config
old notes:
maybe useful?
https://stackoverflow.com/questions/37255548/how-to-run-celery-on-windows
gevent
is prefered thaneventlet
.celery/celery#3453 - limit timeout -why?
https://medium.com/squad-engineering/two-years-with-celery-in-production-bug-fix-edition-22238669601d -downgrade celery
celery/celery#4849 -version below 4.2 dos not support 3.7
celery/celery#4980 -disable heart beat?
celery/celery#3649 -disable heart beat?
Seems like
flower
andcelery inspect
works, until tasks is being triggered by workers...output from
python -m celery -A *** -b amqp://****:5672 inspect active
:👍 getting good search results from above error message.
https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=%22Error%3A+No+nodes+replied+within+time+constraint.%22
traceback from flower:
traceback from a worker (unsure if this is the cause for the above unresponsiveness though...):