close session instead of delete session (#3505)

This commit is contained in:
Shuchang Zheng
2025-09-23 20:53:04 -04:00
committed by GitHub
parent 698d29036d
commit e730d4a31f
2 changed files with 2 additions and 1 deletions

View File

@@ -402,6 +402,7 @@ class Skyvern(AsyncSkyvern):
error_code_mapping=error_code_mapping,
proxy_location=proxy_location,
max_steps=max_steps,
browser_session_id=browser_session_id,
user_agent=user_agent,
)

View File

@@ -321,7 +321,7 @@ class PersistentSessionsManager:
session_id=browser_session_id,
)
await self.database.mark_persistent_browser_session_deleted(browser_session_id, organization_id)
await self.database.close_persistent_browser_session(browser_session_id, organization_id)
async def close_all_sessions(self, organization_id: str) -> None:
"""Close all browser sessions for an organization."""