Update celery routing for celery 4+ (#25567)
* Update celery routing
- Used routing function instead of class
- Move task queues dictionary to Django settings
- Removed routing_key parameter
- Refactored routing for singleton celery instantiation
Co-authored-by:
Awais Qureshi <awais.qureshi@arbisoft.com>
Showing
- cms/celery.py 0 additions, 33 deletionscms/celery.py
- cms/djangoapps/contentstore/tasks.py 3 additions, 3 deletionscms/djangoapps/contentstore/tasks.py
- cms/envs/production.py 18 additions, 1 deletioncms/envs/production.py
- common/djangoapps/entitlements/tasks.py 1 addition, 3 deletionscommon/djangoapps/entitlements/tasks.py
- lms/celery.py 0 additions, 15 deletionslms/celery.py
- lms/djangoapps/bulk_email/tasks.py 0 additions, 3 deletionslms/djangoapps/bulk_email/tasks.py
- lms/djangoapps/discussion/tasks.py 1 addition, 2 deletionslms/djangoapps/discussion/tasks.py
- lms/djangoapps/email_marketing/tasks.py 4 additions, 5 deletionslms/djangoapps/email_marketing/tasks.py
- lms/djangoapps/gating/tasks.py 1 addition, 1 deletionlms/djangoapps/gating/tasks.py
- lms/djangoapps/grades/management/commands/compute_grades.py 1 addition, 1 deletionlms/djangoapps/grades/management/commands/compute_grades.py
- lms/djangoapps/grades/management/commands/tests/test_compute_grades.py 4 additions, 4 deletions...s/grades/management/commands/tests/test_compute_grades.py
- lms/djangoapps/grades/tasks.py 3 additions, 5 deletionslms/djangoapps/grades/tasks.py
- lms/djangoapps/instructor_task/tasks.py 3 additions, 4 deletionslms/djangoapps/instructor_task/tasks.py
- lms/djangoapps/verify_student/tasks.py 1 addition, 4 deletionslms/djangoapps/verify_student/tasks.py
- lms/envs/production.py 60 additions, 1 deletionlms/envs/production.py
- openedx/core/djangoapps/coursegraph/tasks.py 1 addition, 1 deletionopenedx/core/djangoapps/coursegraph/tasks.py
- openedx/core/djangoapps/credentials/tasks/v1/tasks.py 1 addition, 6 deletionsopenedx/core/djangoapps/credentials/tasks/v1/tasks.py
- openedx/core/djangoapps/heartbeat/tasks.py 1 addition, 2 deletionsopenedx/core/djangoapps/heartbeat/tasks.py
- openedx/core/djangoapps/programs/tasks.py 4 additions, 7 deletionsopenedx/core/djangoapps/programs/tasks.py
- openedx/core/djangoapps/schedules/tasks.py 3 additions, 3 deletionsopenedx/core/djangoapps/schedules/tasks.py
Please register or sign in to comment