update poll_interval value type (#3007)
This commit is contained in:
@@ -13,7 +13,7 @@ async def wait_on_persistent_browser_address(
|
|||||||
session_id: str,
|
session_id: str,
|
||||||
organization_id: str,
|
organization_id: str,
|
||||||
timeout: int = 600,
|
timeout: int = 600,
|
||||||
poll_interval: int = 2,
|
poll_interval: float = 2,
|
||||||
) -> str | None:
|
) -> str | None:
|
||||||
persistent_browser_session = await await_browser_session(db, session_id, organization_id, timeout, poll_interval)
|
persistent_browser_session = await await_browser_session(db, session_id, organization_id, timeout, poll_interval)
|
||||||
return persistent_browser_session.browser_address if persistent_browser_session else None
|
return persistent_browser_session.browser_address if persistent_browser_session else None
|
||||||
@@ -24,7 +24,7 @@ async def await_browser_session(
|
|||||||
session_id: str,
|
session_id: str,
|
||||||
organization_id: str,
|
organization_id: str,
|
||||||
timeout: int = 600,
|
timeout: int = 600,
|
||||||
poll_interval: int = 2,
|
poll_interval: float = 2,
|
||||||
) -> PersistentBrowserSession | None:
|
) -> PersistentBrowserSession | None:
|
||||||
try:
|
try:
|
||||||
async with asyncio.timeout(timeout):
|
async with asyncio.timeout(timeout):
|
||||||
|
|||||||
Reference in New Issue
Block a user