mirror of
https://github.com/getredash/redash.git
synced 2026-05-09 03:03:08 -04:00
Replace -c2 in Procfile.heroku with
-c${REDASH_HEROKU_CELERY_WORKER_COUNT:-2}. This reads from the
environment variable REDASH_HEROKU_CELERY_WORKER_COUNT and
uses the value of that if set, otherwise defaults to 2.
Add REDASH_HEROKU_CELERY_WORKER_COUNT to the settings page.
3 lines
184 B
Plaintext
3 lines
184 B
Plaintext
web: ./manage.py runserver -d -r -p $PORT --host 0.0.0.0
|
|
worker: celery worker --app=redash.worker -c${REDASH_HEROKU_CELERY_WORKER_COUNT:-2} --beat -Q queries,celery,scheduled_queries
|