禁用除新订单服务号广播外的所有 Celery/Beat 任务,仅保留 dingdan_guangbo

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
XingQue
2026-06-24 00:57:42 +08:00
parent 49ba67ecaf
commit ef2f30f321
13 changed files with 131 additions and 150 deletions

View File

@@ -850,6 +850,8 @@ STATUS_NOTIFY_TEXT = {
def schedule_order_status_chat_push(dingdan_id):
"""订单状态变更后,事务提交后异步推送群聊状态更新"""
if getattr(settings, 'CELERY_ONLY_ORDER_BROADCAST', True):
return
if not dingdan_id:
return