From e978751f925cce6cb77e962838bf68bd1896a843 Mon Sep 17 00:00:00 2001 From: zjf Date: Tue, 27 May 2025 19:12:50 +0800 Subject: [PATCH] rpa --- src/cluster/rpa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cluster/rpa.py b/src/cluster/rpa.py index 6fb1586..943968c 100644 --- a/src/cluster/rpa.py +++ b/src/cluster/rpa.py @@ -406,13 +406,13 @@ with rpa_image.imports(): live_status = None logger.debug(f"Getting live status for webcast_id: {webcast_id}") try: - await page.wait_for_selector("[class='pip-anchor']", timeout=60 * 000) + await page.wait_for_selector("[class='pip-anchor']", timeout=10 * 000) await page.wait_for_function( """() => { const element = document.querySelector('[class="pip-anchor"]'); return element && element.innerText !== ""; }""", - timeout=60 * 000 + timeout=10 * 000 ) live_status_js = """document.querySelector('[class="pip-anchor"]')?.innerText || ''""" live_status_text: str = await page.evaluate(live_status_js)