Files
AI_A4000/video_worker/center_dispatch/README.md
2026-04-07 17:01:13 +08:00

28 lines
633 B
Markdown
Raw 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.
# Center Dispatch Project
中央调度服务独立项目目录,仅负责:
- 设备接入(`WS /ws/edge/{device_id}`
- 上游 HTTP 下发任务(`POST /dispatch/generate`
- 上游 HTTP 下发运维指令(`POST /devices/{device_id}/command`
- 指令/任务状态查询(`GET /dispatch/{id}``GET /commands/{id}`
## Quick Start
```bash
cd center_dispatch
bash scripts/start.sh
```
停止:
```bash
bash scripts/stop.sh
```
## Notes
- 首次运行会生成 `.env`,请至少配置:
- `GIT_REPO_URL`(开启 `AUTO_PULL_LATEST=true` 时必填)
- OSS 相关配置(`OSS_ENABLED=true` 时必填)