-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Update celery task discovery config. #25479
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2230,15 +2230,6 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring | |
|
|
||
| ################################# CELERY ###################################### | ||
|
|
||
| # Celery's task autodiscovery won't find tasks nested in a tasks package. | ||
| # Tasks are only registered when the module they are defined in is imported. | ||
| CELERY_IMPORTS = ( | ||
| 'poll.tasks', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @feanil , edX has gotten reports that XBlock-poll's reporting features are no longer working (TNL-8370), and I think it was caused by this change (but went unnoticed for months?). The issue is that the Previous PR: https://github.com/edx/edx-platform/pull/23700
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey Braden, that seems like a fine fix, the other option would be to make the polls code into a django app? Which I would prefer but either is acceptable. |
||
| 'lms.djangoapps.instructor_task.tasks', | ||
| 'lms.djangoapps.bulk_email.tasks', | ||
| 'openedx.core.djangoapps.bookmarks.tasks', | ||
| ) | ||
|
|
||
| # Message configuration | ||
|
|
||
| CELERY_TASK_SERIALIZER = 'json' | ||
|
|
||
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.
I can't comment on the actual line, but probably change the default value for
DJANGO_SETTINGS_MODULEin here too?