feat: 实现 Queue Q2 受控 dispatch
This commit is contained in:
@@ -34,6 +34,8 @@ GET /api/v1/queue/tasks?queue=<queue>&state=<state>&cursor=<cursor>&limit=<limi
|
||||
GET /api/v1/queue/tasks/:taskId
|
||||
POST /api/v1/queue/tasks/:taskId/cancel
|
||||
POST /api/v1/queue/tasks/:taskId/read
|
||||
POST /api/v1/queue/tasks/:taskId/dispatch
|
||||
POST /api/v1/queue/tasks/:taskId/refresh
|
||||
GET /api/v1/queue/stats?queue=<queue>
|
||||
GET /api/v1/queue/commander?queue=<queue>
|
||||
```
|
||||
@@ -80,6 +82,8 @@ AgentRun CLI 必须提供 Queue 和 Session 两组命令。Queue 命令只操作
|
||||
./scripts/agentrun queue commander [--queue <queue>]
|
||||
./scripts/agentrun queue read <taskId>
|
||||
./scripts/agentrun queue cancel <taskId> [--reason <text>]
|
||||
./scripts/agentrun queue dispatch <taskId> [--json-file <dispatch.json>]
|
||||
./scripts/agentrun queue refresh <taskId>
|
||||
```
|
||||
|
||||
Session 命令负责输出、trace 和会话控制:
|
||||
@@ -135,7 +139,7 @@ Queue 首版新增或扩展的稳定表方向:
|
||||
| --- | --- | --- |
|
||||
| Q0 | 固化 Queue SPEC 和 schema migration 计划 | 文档与旧 Code Queue 兼容口径不冲突。 |
|
||||
| Q1 | Queue RESTful API 和 CLI 骨架 | submit/list/show/stats/read/cancel 全部短返回 JSON,不触发真实执行也能保存 task。 |
|
||||
| Q2 | attempt 到 Core run/command/runner job 的真实闭环 | Queue submit 产生 attempt,Scheduler 或受控 dispatch 创建真实 runner job。 |
|
||||
| Q2 | attempt 到 Core run/command/runner job 的真实闭环 | Queue submit 后通过受控 `queue dispatch` 产生 attempt,并创建真实 Core run/command/runner job;`queue refresh` 从 Core run/command 终态回写 Queue attempt;自动 Scheduler 仍 deferred。 |
|
||||
| Q3 | Session 引用边界 | `queue show` 返回 `sessionPath`,输出和 trace 只能通过 `sessions ...` 查询。 |
|
||||
| Q4 | summary/stats/read/commander | Queue overview、stats、read cursor、commander 全部直接查 Queue 模型。 |
|
||||
| Q5 | retry/judge/cancel | retry/backoff、judge、cancel 与 attempt/session/core 状态一致。 |
|
||||
|
||||
Reference in New Issue
Block a user