arachnys / cabot

Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
MIT License
5.58k stars 590 forks source link

worker not subscribing to tasks from docker-compose / Checks not running #683

Open benchonaut opened 4 years ago

benchonaut commented 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

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