agent-team-task-cancel
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesetask cancel
任务取消
PREREQUISITE: Read.../agent-team-shared/SKILL.md
Cancel a task that should not be completed or retried.
前提条件: 阅读。../agent-team-shared/SKILL.md
取消不应完成或重试的任务。
Usage
使用方法
bash
agent-team task cancel --task TASK_ID --reason TEXTbash
agent-team task cancel --task TASK_ID --reason TEXTFlags
标志
| Flag | JSON key | Required | Default | Description |
|---|---|---|---|---|
| | yes | - | Task to cancel. |
| | yes | - | Cancellation rationale stored in the event payload. |
| Flag | JSON key | 是否必填 | 默认值 | 说明 |
|---|---|---|---|---|
| | 是 | - | 要取消的任务。 |
| | 是 | - | 存储在事件负载中的取消理由。 |
Examples
示例
bash
agent-team task cancel --task task_docs --reason "scope removed"
agent-team task cancel --params '{"task_id":"task_docs","reason":"scope removed"}'bash
agent-team task cancel --task task_docs --reason "scope removed"
agent-team task cancel --params '{"task_id":"task_docs","reason":"scope removed"}'Errors
错误信息
| Code | Meaning | Action |
|---|---|---|
| Task is already terminal. | Inspect task status. |
| Required field is missing. | Provide task and reason. |
| Code | 含义 | 处理措施 |
|---|---|---|
| 任务已处于终端状态。 | 检查任务状态。 |
| 必填字段缺失。 | 提供任务ID和取消理由。 |
See Also
另请参阅
- agent-team-task-stale
- agent-team-event-log
- agent-team-task-stale
- agent-team-event-log