mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-05 21:07:50 +00:00
fix: lms-worker/cms-worker command update for Celery 5
Before edx-platform was upgraded to Celery 5, lms-worker and cms-worker could be invoked using this syntax: celery worker --app=APP <args> --maxtasksperchild=N <args> Since the recent Celery 5 upgrade (edx-platform commit 0588c92), though, this fails with the messages: You are using `--app` as an option of the worker sub-command: celery worker --app celeryapp <...> The support for this usage was removed in Celery 5.0. Instead you should use `--app` as a global option: celery --app celeryapp worker <...> and: Error: No such option: --maxtasksperchild (Possible options: --max-memory-per-child, --max-tasks-per-child) So, this commit changes the lms-worker and cms-worker invocations to: celery --app=APP <args> --max-tasks-per-child=N <args>
This commit is contained in:
parent
dbe3571ed4
commit
76ef7de74f
@ -2,6 +2,7 @@
|
||||
|
||||
Note: Breaking changes between versions are indicated by "💥".
|
||||
|
||||
- [Bugfix] Update ``celery`` invocations for lms-worker and cms-worker to be compatible with Celery 5 CLI.
|
||||
- [Improvement] Point CMS at its config file using ``CMS_CFG`` environment variable instead of deprecated ``STUDIO_CFG``.
|
||||
- [Bugfix] Start MongoDB when running migrations, because a new data migration fails if MongoDB is not running
|
||||
- [Feature] Better support of Caddy as a load balancer in Kubernetes:
|
||||
|
@ -113,7 +113,7 @@ spec:
|
||||
containers:
|
||||
- name: cms-worker
|
||||
image: {{ DOCKER_IMAGE_OPENEDX }}
|
||||
args: ["celery", "worker", "--app=cms.celery", "--loglevel=info", "--hostname=edx.cms.core.default.%%h", "--maxtasksperchild", "100", "--exclude-queues=edx.lms.core.default"]
|
||||
args: ["celery", "--app=cms.celery", "worker", "--loglevel=info", "--hostname=edx.cms.core.default.%%h", "--max-tasks-per-child", "100", "--exclude-queues=edx.lms.core.default"]
|
||||
env:
|
||||
- name: SERVICE_VARIANT
|
||||
value: cms
|
||||
@ -206,7 +206,7 @@ spec:
|
||||
containers:
|
||||
- name: lms-worker
|
||||
image: {{ DOCKER_IMAGE_OPENEDX }}
|
||||
args: ["celery", "worker", "--app=lms.celery", "--loglevel=info", "--hostname=edx.lms.core.default.%%h", "--maxtasksperchild=100", "--exclude-queues=edx.cms.core.default"]
|
||||
args: ["celery", "--app=lms.celery", "worker", "--loglevel=info", "--hostname=edx.lms.core.default.%%h", "--max-tasks-per-child=100", "--exclude-queues=edx.cms.core.default"]
|
||||
env:
|
||||
- name: SERVICE_VARIANT
|
||||
value: lms
|
||||
|
@ -170,7 +170,7 @@ services:
|
||||
environment:
|
||||
SERVICE_VARIANT: lms
|
||||
SETTINGS: ${TUTOR_EDX_PLATFORM_SETTINGS:-tutor.production}
|
||||
command: celery worker --app=lms.celery --loglevel=info --hostname=edx.lms.core.default.%%h --maxtasksperchild=100 --exclude-queues=edx.cms.core.default
|
||||
command: celery --app=lms.celery worker --loglevel=info --hostname=edx.lms.core.default.%%h --max-tasks-per-child=100 --exclude-queues=edx.cms.core.default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
|
||||
@ -188,7 +188,7 @@ services:
|
||||
environment:
|
||||
SERVICE_VARIANT: cms
|
||||
SETTINGS: ${TUTOR_EDX_PLATFORM_SETTINGS:-tutor.production}
|
||||
command: celery worker --app=cms.celery --loglevel=info --hostname=edx.cms.core.default.%%h --maxtasksperchild 100 --exclude-queues=edx.lms.core.default
|
||||
command: celery --app=cms.celery worker --loglevel=info --hostname=edx.cms.core.default.%%h --max-tasks-per-child 100 --exclude-queues=edx.lms.core.default
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
|
||||
|
Loading…
Reference in New Issue
Block a user