Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
browser = Browser(
config=BrowserConfig(
chrome_instance_path=os.environ.get("CHROME_PATH"),
extra_chromium_args=[
"--no-sandbox",
"--disable-gpu",
"--disable-software-rasterizer",
"--disable-dev-shm-usage",
"--remote-debugging-port=9222",
],
)
)
context = BrowserContext(browser=browser, config=config)
Expand Down Expand Up @@ -118,9 +125,9 @@ async def run_browser_task_async(task_id, url, action):
if not await check_browser_health():
task_store[task_id]["status"] = "failed"
task_store[task_id]["end_time"] = datetime.now().isoformat()
task_store[task_id][
"error"
] = "Browser context is unhealthy and could not be reset"
task_store[task_id]["error"] = (
"Browser context is unhealthy and could not be reset"
)
return

# Define step callback function with the correct signature
Expand Down
Loading