From ca43e653aa26d1f93440a521d57006aa8bb13fbb Mon Sep 17 00:00:00 2001 From: curo1305 Date: Thu, 4 Jun 2026 23:35:15 +0200 Subject: [PATCH] =?UTF-8?q?fix(07):=20replace=20autodiscover=5Ftasks=20wit?= =?UTF-8?q?h=20explicit=20imports=20=E2=80=94=20tasks/document=5Ftasks=20n?= =?UTF-8?q?ot=20at=20tasks.tasks=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- backend/celery_app.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/celery_app.py b/backend/celery_app.py index a048a91..bff1900 100644 --- a/backend/celery_app.py +++ b/backend/celery_app.py @@ -52,5 +52,8 @@ celery_app.conf.beat_schedule = { } celery_app.conf.timezone = "UTC" -# Autodiscover tasks under the `tasks/` package -celery_app.autodiscover_tasks(["tasks"], force=True) +# Explicitly import task modules — autodiscover_tasks(["tasks"]) looks for +# tasks.tasks (appends ".tasks") which doesn't exist in our structure. +import tasks.audit_tasks # noqa: F401, E402 +import tasks.document_tasks # noqa: F401, E402 +import tasks.email_tasks # noqa: F401, E402