Use the default autodiscovery instead of passing in the installed apps. (#25467)
Passing in the INSTALLED_APPS lambda seems to result in some tasks for certain apps like instructor_task and bulk_email to not get discovered properly.
This commit is contained in:
@@ -22,7 +22,7 @@ APP.conf.task_protocol = 1
|
||||
# Using a string here means the worker will not have to
|
||||
# pickle the object when using Windows.
|
||||
APP.config_from_object('django.conf:settings')
|
||||
APP.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||
APP.autodiscover_tasks()
|
||||
|
||||
|
||||
class Router(AlternateEnvironmentRouter):
|
||||
|
||||
@@ -22,7 +22,7 @@ APP.conf.task_protocol = 1
|
||||
# Using a string here means the worker will not have to
|
||||
# pickle the object when using Windows.
|
||||
APP.config_from_object('django.conf:settings')
|
||||
APP.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||
APP.autodiscover_tasks()
|
||||
|
||||
|
||||
class Router(AlternateEnvironmentRouter):
|
||||
|
||||
Reference in New Issue
Block a user