close session instead of delete session (#3505)
This commit is contained in:
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user