彻底关闭订单超时自动结算:总开关+移除 orders.tasks 注册

This commit is contained in:
XingQue
2026-06-16 11:39:27 +08:00
parent 4b3032996d
commit 635421b218
5 changed files with 42 additions and 55 deletions

View File

@@ -33,4 +33,11 @@ supervisorctl restart celery-broadcast
- 不要用 `nohup` 再起第二个 celery worker避免抢任务。
-`-Q default`不会跑订单自动结算order_tasks
- **禁止** 启动 `celery beat``-Q order_tasks` 的 worker。
- 部署后执行一次(清理旧进程):
```bash
pkill -f "celery -A a_long_dianjing beat" || true
pkill -f "celery -A a_long_dianjing worker.*order_tasks" || true
supervisorctl restart celery-broadcast
```
- 密钥文件 `app_secrets.py` 只放服务器,不要提交 Git。