You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no available method to explicitly kill or close a session after a desired operation has been completed using the Browserbase SDK or API that is designed for Playwright.
While it is possible to set an timeout as a workaround, it is not an optimal solution. This approach lacks precision and does not offer the control that a direct method (e.g., session.close() or session.terminate()) would provide.
Why this is important:
Allows developers to gracefully end sessions immediately after their task is done.
Helps manage session usage and API costs more effectively.
Reduces unnecessary wait times or reliance on time-based workarounds.
Request: Please consider adding a dedicated method to manually close or kill sessions programmatically.
Thanks!
The text was updated successfully, but these errors were encountered:
Ran into the same question. From the docs, it looks like the intended way to programmatically end a keepAlive session is client.sessions.update(session_id, status='REQUEST_RELEASE').
For normal sessions, closing the Playwright connection (browser.close()) should trigger auto-termination.
Agree that an explicit close() or terminate() method would be clearer though!
Currently, there is no available method to explicitly kill or close a session after a desired operation has been completed using the Browserbase SDK or API that is designed for Playwright.
While it is possible to set an timeout as a workaround, it is not an optimal solution. This approach lacks precision and does not offer the control that a direct method (e.g.,
session.close()
orsession.terminate()
) would provide.Why this is important:
Request: Please consider adding a dedicated method to manually close or kill sessions programmatically.
Thanks!
The text was updated successfully, but these errors were encountered: