12 lines
408 B
Python
12 lines
408 B
Python
"""Celery task module imports.
|
|
|
|
Celery autodiscover imports ``app.tasks``; importing task modules here ensures
|
|
custom named tasks are registered when workers start.
|
|
"""
|
|
|
|
try:
|
|
from app.tasks import generation_create_tasks, generation_poll_tasks, generation_download_tasks # noqa: F401
|
|
except Exception:
|
|
# Keep application importable even when optional Celery dependencies/config are absent.
|
|
pass
|