/
githubmirror
/
edx-platform
Обзор
Документация
Войти
/
githubmirror
/
edx-platform
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
release-ulmo
lms/celery.py
19 строк
618 B
Tim McCormack
Revert "feat: Add an experimental custom attr for automatic Celery task code owner (#33180)" (#33272)
18 сен 2023, 20:47
Не верифицирован
18 сен 2023, 20:47
fa66240
Код
Авторство
О чём код?
""" Import celery, load its settings from the django settings and auto discover tasks in all installed django apps. Taken from: https://celery.readthedocs.org/en/latest/django/first-steps-with-django.html """ import os # Patch the xml libs before anything else. from openedx.core.lib.safe_lxml import defuse_xml_libs defuse_xml_libs() # Set the default Django settings module for the 'celery' program # and then instantiate the Celery singleton. os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'lms.envs.production') from openedx.core.lib.celery import APP # pylint: disable=wrong-import-position,unused-import