-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix Celery worker --max-tasks-per-child for Celery 4.x. #3625
Conversation
/cc @jasonthomas |
bin/docker-entrypoint
Outdated
@@ -4,9 +4,10 @@ set -e | |||
worker() { | |||
WORKERS_COUNT=${WORKERS_COUNT:-2} | |||
QUEUES=${QUEUES:-queries,scheduled_queries,celery,schemas} | |||
WORKER_EXTRA_OPTIONS=${WORKER_EXTRA_OPTIONS:} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonthomas Is this a legitimate shell script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is throwing a bad substitution error. It should be WORKER_EXTRA_OPTIONS=${WORKER_EXTRA_OPTIONS:-}
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good assuming the WORKER_EXTRA_OPTIONS
thing is legit.
Thanks. |
* Fix Celery worker CLI parameter name that was changed in Celery 4.x. * Set Celery worker --max-memory-per-child to 1/4th of total system memory. * Review fixes. * Review fixes.
What type of PR is this? (check all applicable)
Description
This fixes the name of the
--max-tasks-per-child
parameter whose name was changed in Celery 4.x and adds a--max-memory-per-child
of 1/4 of total memory.Related Tickets & Documents
Port of mozilla#364