Skip to content

Commit

Permalink
Add browser_session_id to context
Browse files Browse the repository at this point in the history
  • Loading branch information
satansdeer committed Dec 16, 2024
1 parent 9b6f0f3 commit 1078402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions skyvern/forge/sdk/core/skyvern_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class SkyvernContext:
workflow_run_id: str | None = None
max_steps_override: int | None = None
tz_info: ZoneInfo | None = None
browser_session_id: str | None = None
totp_codes: dict[str, str | None] = field(default_factory=dict)

def __repr__(self) -> str:
Expand Down
4 changes: 2 additions & 2 deletions skyvern/forge/sdk/workflow/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ async def setup_workflow_run(
)
if reusable_browser_session is None:
raise BrowserSessionNotFound(browser_session_id=workflow_request.browser_session_id)
reusable_browser_session.reset_timeout()
# reusable_browser_session.reset_timeout()

if workflow_request.proxy_location is None and workflow.proxy_location is not None:
workflow_request.proxy_location = workflow.proxy_location
Expand Down Expand Up @@ -150,7 +150,7 @@ async def setup_workflow_run(
workflow_id=workflow_id,
workflow_run_id=workflow_run.workflow_run_id,
max_steps_override=max_steps_override,
reuse_browser_session=workflow_request.browser_session_id,
browser_session_id=workflow_request.browser_session_id,
)
)

Expand Down

0 comments on commit 1078402

Please sign in to comment.