Files
syops/backend/workers/README.md
2026-09-28 14:52:28 +08:00

14 lines
842 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Worker 进程启动脚本目录
与根目录 `worker_*.py` 对应关系(与 KB 一致):
| 根目录(Compose 正式入口,含并发) | `workers/`(Supervisor 兼容薄封装,单进程) |
| --- | --- |
| `worker_kb.py` | `worker_kb.py` → `main(queues=['kb'])` |
| `worker_shipping.py` | `worker_shipping_notice.py` → `main(queues=['shipping'])` |
| — | `worker_scheduler.py` → `main(queues=['schedule'])` |
| —(Compose 直接用本目录单实例入口) | `worker_in_transit_transfer.py` → `main(queues=['transfer'])` |
| —(Compose:`hxops-fixed-assets-worker`) | `worker_fixed_assets.py` → `FixedAssetsSnapshotService.run_worker_forever` |
本地 / Compose 请用根目录脚本,以保留 `*_WORKER_CONCURRENCY` 多进程能力(固资快照为独立常驻循环,无队列并发参数)。