File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919request at a time); the literal ``unbounded`` lifts the cap. ``N``
2020bounds only how many of a chunked query's sub-requests are in flight at
2121once — 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
3124Retries: each sub-request is retried on a transient failure (429,
32255xx, connect/read timeout) with exponential backoff + full jitter,
You can’t perform that action at this time.
0 commit comments