Skip to content

Commit

Permalink
fix unbounded variable bug in observer service (#1789)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Feb 18, 2025
1 parent 71cbd27 commit 875d19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skyvern/forge/sdk/services/observer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def initialize_observer_task(
# fail the workflow run
await mark_observer_task_as_failed(
observer_cruise_id=observer_task.observer_cruise_id,
workflow_run_id=workflow_run.workflow_run_id,
workflow_run_id=observer_task.workflow_run_id,
failure_reason="Skyvern failed to setup the workflow run",
organization_id=organization.organization_id,
)
Expand All @@ -186,7 +186,7 @@ async def initialize_observer_task(

# update oserver cruise
try:
observer_task = await app.DATABASE.update_observer_cruise(
observer_task = await app.database.update_observer_cruise(
observer_cruise_id=observer_task.observer_cruise_id,
workflow_run_id=workflow_run.workflow_run_id,
workflow_id=new_workflow.workflow_id,
Expand Down

0 comments on commit 875d19e

Please # to comment.