From e661bd2b7c56da065a20fe5cf36660465e4427aa Mon Sep 17 00:00:00 2001 From: Gaurav Chadha <65453826+Chadha93@users.noreply.github.com> Date: Tue, 23 Sep 2025 01:40:05 +0530 Subject: [PATCH] fix: add missing `poll_interval` param in watcher (#2155) * add-poll_interval-param-in-watcher Signed-off-by: Chadha93 * add-guard-for-non-negative-values Signed-off-by: Chadha93 --------- Signed-off-by: Chadha93 --- apps/python-sdk/firecrawl/v2/watcher_async.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/python-sdk/firecrawl/v2/watcher_async.py b/apps/python-sdk/firecrawl/v2/watcher_async.py index 7ed385d2f..ba7f1d290 100644 --- a/apps/python-sdk/firecrawl/v2/watcher_async.py +++ b/apps/python-sdk/firecrawl/v2/watcher_async.py @@ -28,13 +28,14 @@ class AsyncWatcher: job_id: str, *, kind: JobKind = "crawl", + poll_interval: int = 2, timeout: Optional[int] = None, ) -> None: self._client = client self._job_id = job_id self._kind = kind self._timeout = timeout - self._poll_interval: float = 2.0 + self._poll_interval: float = max(0.0, float(poll_interval)) # Guard against negative values http_client = getattr(client, "http_client", None) if http_client is not None: