forked from getredash/redash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace -c2 in Procfile.heroku with env variable
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.
- Loading branch information
1 parent
7445972
commit 7d10edd
Showing
2 changed files
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: ./manage.py runserver -d -r -p $PORT --host 0.0.0.0 | ||
worker: celery worker --app=redash.worker -c2 --beat -Q queries,celery,scheduled_queries | ||
worker: celery worker --app=redash.worker -c${REDASH_HEROKU_CELERY_WORKER_COUNT:-2} --beat -Q queries,celery,scheduled_queries |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters