Tech Insights
In Celery configuration use:
app.autodiscover_tasks(lambda: [n.name for n in apps.get_app_configs()])
instead of:
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
autodiscover_tasks() will not understand if you declare in INSTALLED_APPS some app through django AppConfig. (Ex: INSTALLED_APPS += ['users.apps.UsersConfig', ])
Shared by
- Celery
- Django



