Skip to content

Commit

Permalink
stop retrying steps when decisive action failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng committed Nov 20, 2024
1 parent c777e3d commit ba04b71
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,17 @@ async def agent_step(
action=action,
action_result=results,
)
elif results and isinstance(action, DecisiveAction):
LOG.warning(
"DecisiveAction failed, but not stopping execution",
task_id=task.task_id,
step_id=step.step_id,
step_order=step.order,
step_retry=step.retry_index,
action_idx=action_idx,
action=action,
action_result=results,
)
elif results and not results[-1].success and not results[-1].stop_execution_on_failure:
LOG.warning(
"Action failed, but not stopping execution",
Expand Down

0 comments on commit ba04b71

Please sign in to comment.