✨ feat: get_devices_ts_time_ago — concurrent batch helper #168
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/devices-ts-batch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
No REST bulk endpoint exists for per-device series (repeated
id=keeps only the first — field notes), so N devices mean N calls; this mirrors the SPA's parallel fan-out. Fail-fast is deterministic: all futures are collected, then the exception of the first failing device in input order is raised — same semantics as a sequential loop that dies, just faster. Docstring carries the shared-requests.Session-across-threads caveat (simple GETs, urllib3 pool is thread-safe; not an official requests guarantee).Evidence
AttributeError— no batch method; N devices = N sequential round-trips.[], max_workers cap/short-list/explicit);pytest= 227 passed (baseline 220);mypyclean. Reviewer verdicts: spec PASS, quality PASS (3 Minor parked — see PR comments if needed).Merge Danger
Door: two-way — additive mixin; revert removes it cleanly.
Blast Radius: low — one new public method; no existing method touched.
Closes #103
WIP: ✨ feat: get_devices_ts_time_ago — concurrent batch helperto ✨ feat: get_devices_ts_time_ago — concurrent batch helper