Skip to content

Commit

Permalink
fix get latest step (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Dec 18, 2024
1 parent 58413db commit a6fec7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions skyvern/forge/sdk/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ async def get_latest_step(self, task_id: str, organization_id: str | None = None
.filter_by(task_id=task_id)
.filter_by(organization_id=organization_id)
.order_by(StepModel.order.desc())
.order_by(StepModel.retry_index.desc())
)
).first():
return convert_to_step(step, debug_enabled=self.debug_enabled)
Expand Down

0 comments on commit a6fec7b

Please sign in to comment.