Skip to content

Commit

Permalink
Merge pull request #535 from dandi/celery-beat
Browse files Browse the repository at this point in the history
Add separate dyno for celery beat
  • Loading branch information
dchiquito authored Sep 30, 2021
2 parents 4867478 + 3952ae7 commit d21010f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
release: ./manage.py migrate
web: gunicorn --bind 0.0.0.0:$PORT dandiapi.wsgi
# We are using the -B flag to launch the beat scheduler within the worker thread
# This means that we cannot have multiple workers, as they would all trigger beat events
# The alternative would be a separate worker to drive the beat, which is costly at our current Heroku dyno tier
worker: REMAP_SIGTERM=SIGQUIT celery --app dandiapi.celery worker --loglevel INFO -B
worker: REMAP_SIGTERM=SIGQUIT celery --app dandiapi.celery worker --loglevel INFO
celery-beat: REMAP_SIGTERM=SIGQUIT celery --app dandiapi.celery beat --loglevel INFO

0 comments on commit d21010f

Please sign in to comment.