fix(knowledge-base): 优化知识库页面,重构后端job队列

This commit is contained in:
sophie committed 2026-06-29 18:56:56 +08:00
1 parent 7e4a2037d8
commit b476b58a91
38 files changed
+992 -428

No files matched your search

@@ -15,5 +15,12 @@ from app.services.shipping_notice.queue_service import run_shipping_notice_job
@register_handler(JobType.SHIPPING_NOTICE_RUN)
def run_shipping_notice(ctx: JobContext, payload: dict) -> None:
"""消费单票发货后台任务。"""
run_shipping_notice_job(payload, logger=ctx.logger)
"""
消费单票发货后台任务。
Args:
ctx: Worker 上下文。
payload: 须含 job_id 或 task_no。
"""
ok, message = run_shipping_notice_job(payload, logger=ctx.logger)
if not ok:
raise RuntimeError(message)