Skip to content

Fix unregistered celery task - #21305

Merged
zainab-amir merged 1 commit into
masterfrom
zamir/PROD-283-Fix-unregistered-celery-task
Aug 8, 2019
Merged

Fix unregistered celery task#21305
zainab-amir merged 1 commit into
masterfrom
zamir/PROD-283-Fix-unregistered-celery-task

Conversation

@zainab-amir

Copy link
Copy Markdown
Contributor

openedx.core.djangoapps.ccxcon.tasks.update_ccxcon task is not getting autodiscovered by celery and needs to be imported explicitly.

When using celery with django, the autodiscover_tasks function registers all decorated tasks within the task module inside each INSTALLED_APPS entry. The app openedx.core.djangoapps.ccxcon is not present in INSTALLED_APPS.

I have added an explicit name for the task to avoid the automatic naming and relative import problem in the future. For more context read this

PROD-283

@zainab-amir
zainab-amir requested a review from bderusha August 7, 2019 12:59
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
@zainab-amir
zainab-amir force-pushed the zamir/PROD-283-Fix-unregistered-celery-task branch from 0d91edb to b7ecd80 Compare August 8, 2019 05:59
@edx-status-bot

Copy link
Copy Markdown

Your PR has finished running tests. There were no failures.

@zainab-amir
zainab-amir merged commit 6b78107 into master Aug 8, 2019
@zainab-amir
zainab-amir deleted the zamir/PROD-283-Fix-unregistered-celery-task branch August 8, 2019 06:32
@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the staging environment in preparation for a release to production on Thursday, August 08, 2019.

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR may have caused e2e tests to fail on Stage. If you're a member of the edX org, please visit #e2e-troubleshooting on Slack to help diagnose the cause of these failures. Otherwise, it is the reviewer's responsibility. E2E tests have failed. https://gocd.tools.edx.org/go/tab/pipeline/history/STAGE_edxapp_M-D

@edx-pipeline-bot

Copy link
Copy Markdown
Contributor

EdX Release Notice: This PR has been deployed to the production environment.

OmarIthawi pushed a commit to appsembler/edx-platform that referenced this pull request Dec 30, 2019
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
morenol pushed a commit to Zollege/edx-platform that referenced this pull request Apr 1, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
morenol pushed a commit to eduNEXT/edx-platform that referenced this pull request Apr 1, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
cruise-control-service pushed a commit to eduNEXT/edx-platform that referenced this pull request Apr 14, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
cruise-control-service pushed a commit to eduNEXT/edx-platform that referenced this pull request Apr 29, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
Alec4r pushed a commit to eduNEXT/edx-platform that referenced this pull request Apr 30, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
cruise-control-service pushed a commit to eduNEXT/edx-platform that referenced this pull request May 5, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
cruise-control-service pushed a commit to eduNEXT/edx-platform that referenced this pull request May 15, 2020
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
cruise-control-service pushed a commit to eduNEXT/edx-platform that referenced this pull request Apr 21, 2021
openedx.core.djangoapps.ccxcon.tasks.update_ccxcon is not get auto
discovered by celery. Adding it to CELERY_IMPORTS to be explicitly
added.

PROD-283
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants