cabot
cabot copied to clipboard
worker not subscribing to tasks from docker-compose / Checks not running
after many tries, it turned out that the worker did only sometimes subscribe , though beat was running and rabbitmq was connected ,
i turned out that running it in the main container , subscription to cabot.* worked , but only if worker is not started too early
Solution
extended the cmd section of docker-compose.yml
gunicorn cabot.wsgi:application -b 0.0.0.0:5000 --workers=5 & sleep 45 ; celery -A cabot worker --loglevel=INFO & wait