Always import task packages by absolute paths
This follows the recommendation in the Celery documentation so as to not confuse automatic task name generation. Docs: https://docs.celeryproject.org/en/stable/userguide/tasks.html#automatic-naming-and-relative-imports
This commit is contained in:
@@ -28,7 +28,7 @@ from celery import task
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext_noop
|
||||
|
||||
from bulk_email.tasks import perform_delegate_email_batches
|
||||
from lms.djangoapps.bulk_email.tasks import perform_delegate_email_batches
|
||||
from lms.djangoapps.instructor_task.tasks_base import BaseInstructorTask
|
||||
from lms.djangoapps.instructor_task.tasks_helper.certs import generate_students_certificates
|
||||
from lms.djangoapps.instructor_task.tasks_helper.enrollments import (
|
||||
|
||||
Reference in New Issue
Block a user