Skip to content

Commit

Permalink
improve max steps failure description
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng committed Dec 2, 2024
1 parent 0b2252d commit 90f70bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,8 +1960,9 @@ async def handle_completed_step(
step=step,
page=page,
)
if not failure_reason:
failure_reason = f"Max steps per task ({max_steps_per_run}) exceeded"
failure_reason = (
f"Reach the ({max_steps_per_run}) max steps. This may have failed because: {failure_reason}"
)

await self.update_task(
task,
Expand Down

0 comments on commit 90f70bf

Please sign in to comment.