fix recreate workflow browser (#673)

This commit is contained in:
LawyZheng
2024-08-05 14:45:55 +08:00
committed by GitHub
parent e4fd825497
commit 845ae8d3e4
2 changed files with 15 additions and 4 deletions

View File

@@ -84,7 +84,9 @@ class BrowserManager:
# The URL here is only used when creating a new page, and not when using an existing page.
# This will make sure browser_state.page is not None.
await browser_state.get_or_create_page(url=url, proxy_location=workflow_run.proxy_location)
await browser_state.get_or_create_page(
url=url, proxy_location=workflow_run.proxy_location, workflow_run_id=workflow_run.workflow_run_id
)
self.pages[workflow_run.workflow_run_id] = browser_state
return browser_state