Skip to content

Commit

Permalink
do not use status as a param in logs - use step_status and task_status (
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Feb 3, 2025
1 parent 0fff763 commit eb0d4db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions skyvern/forge/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1928,7 +1928,7 @@ async def update_step(
task_id=step.task_id,
step_id=step.step_id,
duration_seconds=duration_seconds,
status=status,
step_status=status,
organization_id=step.organization_id,
)

Expand Down Expand Up @@ -1975,7 +1975,7 @@ async def update_task(
task_id=task.task_id,
workflow_run_id=task.workflow_run_id,
duration_seconds=duration_seconds,
status=status,
task_status=status,
organization_id=task.organization_id,
)

Expand Down
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/workflow/models/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ async def execute(
LOG.warning(
f"Task failed with status {updated_task.status}{retry_message}",
task_id=updated_task.task_id,
status=updated_task.status,
task_status=updated_task.status,
workflow_run_id=workflow_run_id,
workflow_id=workflow.workflow_id,
organization_id=workflow_run.organization_id,
Expand Down

0 comments on commit eb0d4db

Please sign in to comment.