Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

disable screenshot semaphore for now

Nick Sweeting438056287b86
diff --git a/browser_use/browser/session.py b/browser_use/browser/session.py
index 39ffeaf2b..0b0e0ad47 100644
--- a/browser_use/browser/session.py
+++ b/browser_use/browser/session.py
@@ -3599,11 +3599,11 @@ class BrowserSession(BaseModel):
retries=1, # try up to 1 time to take the screenshot (2 total attempts)
timeout=30, # allow up to 30s for each attempt (includes recovery time)
wait=1, # wait 1s between each attempt
- semaphore_limit=2, # Allow 2 screenshots at a time to better utilize resources
- semaphore_name='screenshot_global',
- semaphore_scope='multiprocess',
- semaphore_lax=True, # Continue without semaphore if it can't be acquired
- semaphore_timeout=15, # Wait up to 15s for semaphore acquisition
+ # semaphore_limit=2, # Allow 2 screenshots at a time to better utilize resources
+ # semaphore_name='screenshot_global',
+ # semaphore_scope='multiprocess',
+ # semaphore_lax=True, # Continue without semaphore if it can't be acquired
+ # semaphore_timeout=15, # Wait up to 15s for semaphore acquisition
)
@require_healthy_browser(usable_page=True, reopen_page=True)
@time_execution_async('--take_screenshot')