Skip to content

Commit

Permalink
chore: add 10 minute timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Apr 30, 2024
1 parent 9278343 commit 806f151
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def _playwright_visit_page(browser_url: str, headers: dict) -> Iterator[playwrig
context = browser.new_context()
context.set_extra_http_headers(headers)
page = context.new_page()
page.goto(
browser_url,
wait_until="domcontentloaded",
)
print("hi")
print(browser_url)
page.goto(browser_url, timeout=1000 * 60 * 10)
print("done...")
page.emulate_media(media="print")
page.wait_for_load_state("domcontentloaded")
page.wait_for_load_state("networkidle")
Expand Down

0 comments on commit 806f151

Please sign in to comment.