Skip to content

Commit

Permalink
first_step
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng committed Dec 7, 2024
1 parent 457cf51 commit c263b98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1637,7 +1637,7 @@ async def build_task_response(
if first_step:
recording_artifact = await app.DATABASE.get_artifact(
task_id=task.task_id,
step_id=last_step.step_id,
step_id=first_step.step_id,
artifact_type=ArtifactType.RECORDING,
organization_id=task.organization_id,
)
Expand Down
2 changes: 0 additions & 2 deletions skyvern/forge/sdk/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,6 @@ async def get_first_step(self, task_id: str, organization_id: str | None = None)
LOG.error("UnexpectedError", exc_info=True)
raise



async def get_latest_step(self, task_id: str, organization_id: str | None = None) -> Step | None:
try:
async with self.Session() as session:
Expand Down

0 comments on commit c263b98

Please sign in to comment.