Author orch Markdown test plan
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Case: `cancel-cancels-entire-run`
|
||||
|
||||
## 用例意义
|
||||
|
||||
验证不带 `--task` 的 `cancel` 会取消整个运行,并把所有任务推进到 `cancelled`。
|
||||
|
||||
## 前置条件
|
||||
|
||||
- 运行 `run_blog_cancel_001` 已存在
|
||||
- 该运行下至少有 `T1`、`T2` 两个任务
|
||||
- 在执行本用例前,可能已有单任务取消发生
|
||||
|
||||
## 输入
|
||||
|
||||
```bash
|
||||
orch --db TMPDIR/coord.db --json cancel --run run_blog_cancel_001 --reason "Stop the run."
|
||||
orch --db TMPDIR/coord.db --json status --run run_blog_cancel_001
|
||||
```
|
||||
|
||||
## 预期输出
|
||||
|
||||
- `cancel` 退出码为 `0`
|
||||
- `cancel.data.run.status == "cancelled"`
|
||||
- `status.data.run.status == "cancelled"`
|
||||
- `status.data.tasks` 中所有任务的 `status` 都为 `cancelled`
|
||||
|
||||
## 断言结论
|
||||
|
||||
- 运行级取消会级联终止运行下的全部任务
|
||||
- 该命令是 leader 主动停止整个调度的主入口,而不是只做标记
|
||||
Reference in New Issue
Block a user