Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specifying the number of Celery workers in environment variables #43

Open
yanickrochon opened this issue Jun 15, 2020 · 1 comment
Open

Comments

@yanickrochon
Copy link

Is your feature request related to a problem? Please describe.
I simply wanted to add more workers in a prod environment, so I had to edit the docker-entrypoint.sh starting script. Then rebuild the entire container because I couldn't change that script inside the container without root privilege.

Describe the solution you'd like
Inside the .env file, have a variable defined as:

# Number of workers
CELERY_WORKERS=2

which will automatically generate the number of workers instead of having it hard-coded to 2.

Describe alternatives you've considered
Manually changing docker-entrypoint.sh and rebuilding everything.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant