Skip to content

Commit 6b594b1

Browse files
authored
Update dataretrieval/waterdata/chunking.py
1 parent 2cf2e08 commit 6b594b1

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

dataretrieval/waterdata/chunking.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@
1919
request at a time); the literal ``unbounded`` lifts the cap. ``N``
2020
bounds only how many of a chunked query's sub-requests are in flight at
2121
once — a client-side trade-off between open connections and fan-out
22-
latency. It does not affect the API rate limit: a chunked call issues
23-
the same number of sub-requests regardless of ``N``, so ``N`` changes
24-
their timing, not the total request volume. The USGS API rate-limits by
25-
volume over time (HTTP 429), not by simultaneity; set ``API_USGS_PAT``
26-
to raise that quota. The default of 32 is a conservative cap that keeps
27-
connection use modest. The fan-out runs in a short-lived worker thread
28-
(an ``anyio`` blocking portal), so it works whether or not the caller is
29-
already inside an event loop (Jupyter / IPython / async apps).
22+
latency.
3023
3124
Retries: each sub-request is retried on a transient failure (429,
3225
5xx, connect/read timeout) with exponential backoff + full jitter,

0 commit comments

Comments
 (0)