agent-team-task-retry

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

task retry

任务重试

PREREQUISITE: Read
../agent-team-shared/SKILL.md
.
Move a
blocked
,
in_progress
, or
failed
task back to
pending
for another attempt.
前置条件: 阅读
../agent-team-shared/SKILL.md
将处于
blocked
in_progress
failed
状态的任务重新设为
pending
,以便再次尝试执行。

Usage

使用方法

bash
agent-team task retry --task TASK_ID --reason TEXT
bash
agent-team task retry --task TASK_ID --reason TEXT

Flags

标志参数

FlagJSON keyRequiredDefaultDescription
--task
task_id
yes-Task to reset to
pending
.
--reason
reason
yes-Retry rationale stored in the event payload.
标志JSON键是否必填默认值描述
--task
task_id
-要重置为
pending
状态的任务。
--reason
reason
-存储在事件负载中的重试理由。

Examples

示例

bash
agent-team task retry --task task_docs --reason "API schema is now available"
agent-team task retry --params '{"task_id":"task_docs","reason":"API schema is now available"}'
bash
agent-team task retry --task task_docs --reason "API schema is now available"
agent-team task retry --params '{"task_id":"task_docs","reason":"API schema is now available"}'

Behavior

行为说明

  • Allowed source status:
    blocked
    ,
    in_progress
    ,
    failed
    .
  • Clears
    evidence
    ,
    artifact
    ,
    blocked_reason
    , and
    started_version
    .
  • 允许的源状态:
    blocked
    in_progress
    failed
  • 清除
    evidence
    artifact
    blocked_reason
    started_version
    字段。

Errors

错误信息

CodeMeaningAction
invalid_task_state
Task is not
blocked
,
in_progress
, or
failed
.
Inspect task and choose the correct operation.
validation_error
Required field is missing.Provide task and reason.
代码含义操作建议
invalid_task_state
任务状态不是
blocked
in_progress
failed
检查任务状态,选择正确的操作。
validation_error
必填字段缺失。提供任务ID和重试理由。

See Also

另请参阅

  • agent-team-task-show
  • agent-team-event-log
  • agent-team-task-show
  • agent-team-event-log