火山引擎SMS API|celery容灾优化|生成模型引擎积分列表API
This commit is contained in:
@@ -5,7 +5,11 @@ custom named tasks are registered when workers start.
|
||||
"""
|
||||
|
||||
try:
|
||||
from app.tasks import generation_create_tasks, generation_poll_tasks, generation_download_tasks # noqa: F401
|
||||
from app.tasks import ( # noqa: F401
|
||||
generation_create_tasks,
|
||||
generation_poll_tasks,
|
||||
generation_download_tasks,
|
||||
generation_recovery_tasks,
|
||||
)
|
||||
except Exception:
|
||||
# Keep application importable even when optional Celery dependencies/config are absent.
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user