7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-27 09:03:28 +00:00
tutor/tutor
Kyle McCormick 76ef7de74f 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>
2022-03-24 08:20:24 +01:00
..
commands fix: "unexpected args" error on k8s 2022-03-17 10:40:57 +01:00
templates fix: lms-worker/cms-worker command update for Celery 5 2022-03-24 08:20:24 +01:00
__about__.py Merge remote-tracking branch 'origin/master' into nightly 2022-03-17 11:22:30 +00:00
__init__.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
bindmounts.py fix: lint unused arguments in code base 2021-12-20 21:19:10 +01:00
config.py refactor: add code coverage, cover CLI commands with tests 2022-01-04 13:40:33 +01:00
env.py fix: attempt to make upgrade much clearer 2022-01-08 19:07:26 +01:00
exceptions.py Tutor v3 complete rewrite 2019-02-09 20:30:01 +01:00
fmt.py feat: upgrade to Maple 2021-12-20 21:21:36 +01:00
images.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
interactive.py refactor: clarify configuration management 2021-12-20 21:19:10 +01:00
jobs.py fix: "unexpected args" error on k8s 2022-03-17 10:40:57 +01:00
plugins.py chore: upgrade mypy 2022-02-21 10:59:53 +01:00
serialize.py fix: YamlParamType supports line terminators 2021-04-25 09:14:21 +02:00
types.py refactor: better config type checking 2021-04-18 18:02:02 +02:00
utils.py chore: fix various linting warnings in f-strings and docs 2022-02-25 14:50:36 +01:00