Open benchonaut opened 4 years ago
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
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
gunicorn cabot.wsgi:application -b 0.0.0.0:5000 --workers=5 & sleep 45 ; celery -A cabot worker --loglevel=INFO & wait
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