From 43c3fa2267a84676f9f9ba1576b8a23f10d5b3a1 Mon Sep 17 00:00:00 2001 From: Brendan Smith Date: Wed, 17 Jan 2024 11:27:28 +0000 Subject: [PATCH] Move core celery task registration to celery config --- conf/celery.py | 1 + conf/settings.py | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/celery.py b/conf/celery.py index 3f4216c7..08059472 100644 --- a/conf/celery.py +++ b/conf/celery.py @@ -15,3 +15,4 @@ # Load celery_tasks.py modules from all registered Django apps. app.autodiscover_tasks(related_name="celery_tasks") +app.autodiscover_tasks(["core"], related_name="celery_tasks") diff --git a/conf/settings.py b/conf/settings.py index e055078c..455da12d 100644 --- a/conf/settings.py +++ b/conf/settings.py @@ -38,7 +38,6 @@ "background_task", "mail.apps.MailConfig", "healthcheck", - "core", ] MIDDLEWARE = [