mirror of https://github.com/status-im/cabot.git
Fix all workers running beats
This caused inaccurate timings and some duplicate jobs running. There should only ever be a single beat service, whereas we were using a dev feature to run a beat service on all 16 workers
This commit is contained in:
parent
bd877b827d
commit
8dd27fb82c
3
Procfile
3
Procfile
|
@ -1,2 +1,3 @@
|
|||
web: gunicorn cabot.wsgi:application --config gunicorn.conf
|
||||
celery: celery worker -B -A cabot --loglevel=INFO --concurrency=16 -Ofair
|
||||
celery: celery worker -A cabot --loglevel=INFO --concurrency=16 -Ofair
|
||||
beat: celery beat -A cabot --loglevel=INFO
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
web: python manage.py runserver 0.0.0.0:$PORT
|
||||
celery: celery -A cabot worker --loglevel=DEBUG -B -c 8 -Ofair
|
||||
celery: celery -A cabot worker --loglevel=DEBUG -c 8 -Ofair
|
||||
beat: celery -A cabot beat --loglevel=DEBUG
|
||||
|
|
|
@ -18,7 +18,18 @@ services:
|
|||
env_file:
|
||||
- conf/development.env
|
||||
image: cabot:web
|
||||
command: python manage.py celery worker -B -A cabot --loglevel=DEBUG --concurrency=16 -Ofair
|
||||
command: python manage.py celery worker -A cabot --loglevel=DEBUG --concurrency=16 -Ofair
|
||||
volumes:
|
||||
- .:/code
|
||||
links:
|
||||
- redis
|
||||
- db
|
||||
|
||||
beat:
|
||||
env_file:
|
||||
- conf/development.env
|
||||
image: cabot:web
|
||||
command: python manage.py celery beat -A cabot --loglevel=DEBUG
|
||||
volumes:
|
||||
- .:/code
|
||||
links:
|
||||
|
|
Loading…
Reference in New Issue