fix(07): replace autodiscover_tasks with explicit imports — tasks/document_tasks not at tasks.tasks path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
1f0808c303
commit
ca43e653aa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user