fix:小组件- PUSH
This commit is contained in:
@@ -2,3 +2,12 @@
|
||||
Celery 任务集合。
|
||||
"""
|
||||
|
||||
# 重要:
|
||||
# - 本项目的任务按文件拆分在 app/tasks/*.py 中
|
||||
# - Celery autodiscover 通常只会导入 app.tasks(即本包),不会自动递归导入子模块
|
||||
# - 因此这里需要显式导入各任务模块,确保 shared_task 被注册
|
||||
|
||||
from app.tasks import ping as _ping # noqa: F401
|
||||
from app.tasks import reco as _reco # noqa: F401
|
||||
from app.tasks import push as _push # noqa: F401
|
||||
|
||||
|
||||
Reference in New Issue
Block a user