fix: 收敛 queue runner 失败终态与 CLI 生命周期
This commit is contained in:
@@ -34,7 +34,10 @@ CLI 默认输出 JSON。空 stdout 是失败,不是成功。每个命令都必
|
||||
./scripts/agentrun runner start --run-id <runId> --backend <backendProfile>
|
||||
./scripts/agentrun runner job --run-id <runId> --command-id <commandId> [--idempotency-key <key>]
|
||||
./scripts/agentrun backends list
|
||||
./scripts/agentrun server start|status
|
||||
./scripts/agentrun server start [--port <port>] [--host <host>] [--foreground]
|
||||
./scripts/agentrun server status [--port <port>]
|
||||
./scripts/agentrun server logs [--port <port>] [--tail-bytes <bytes>] [--log-file <path>]
|
||||
./scripts/agentrun server stop [--port <port>]
|
||||
```
|
||||
|
||||
行为必须保持以下规则:
|
||||
@@ -43,7 +46,10 @@ CLI 默认输出 JSON。空 stdout 是失败,不是成功。每个命令都必
|
||||
- `runner start` 启动本地进程或 Kubernetes Job,并返回 process/job identity、log path 和 poll commands。
|
||||
- `events` 默认分页且有界。
|
||||
- `server logs` 返回有界日志,并指向完整日志文件。
|
||||
- `status` 在本地服务存在后必须暴露 port、process id、health 和 log paths。
|
||||
- `server start` 默认后台启动本地 manager,短返回 pid、pidFile、logPath 和后续 status/stop 命令;`--foreground` 仅用于容器入口或显式调试。
|
||||
- `server status` 暴露 port、process id、health 和 log paths;health 不通时仍返回结构化 JSON。
|
||||
- `server logs` 返回有界日志尾部和截断元数据,不能要求人工直接打开日志文件排障。
|
||||
- `server stop` 通过 pidFile 和端口进程清理本地 manager,返回 before/after 状态。
|
||||
|
||||
## 配置与日志
|
||||
|
||||
|
||||
Reference in New Issue
Block a user