From da41e9ab0d8af8216316aea805f71f7e8b8e9e34 Mon Sep 17 00:00:00 2001 From: xsl Date: Fri, 14 Aug 2026 22:19:35 +0800 Subject: [PATCH] =?UTF-8?q?chore(worker):=20register=20report=5Ftasks=20in?= =?UTF-8?q?=20celery=20include=EF=BC=88T15=20=E5=90=88=E5=B9=B6=E8=A1=A5?= =?UTF-8?q?=E9=BD=90=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit T15 按纪律禁改 celery_app.py,在偏差说明中移交:真 worker 进程需加载 apps.worker.report_tasks,否则 meida.report.generate 只能靠 send_task 按名投递而无人消费。 --- apps/worker/celery_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/worker/celery_app.py b/apps/worker/celery_app.py index 964a987..5e69baf 100755 --- a/apps/worker/celery_app.py +++ b/apps/worker/celery_app.py @@ -27,7 +27,7 @@ celery_app = Celery( "meida", broker=settings.celery_broker_url, backend=settings.celery_result_backend, - include=["apps.worker.tasks"], + include=["apps.worker.tasks", "apps.worker.report_tasks"], ) celery_app.conf.update(