You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
okama_macro.sources.hkma._get_records no longer multiplies its retries.
The function wrapped _http.get in its own retry loop and caught plain RuntimeError — the very type _http.get raises for HTTP failures — so an
HKMA 5xx was retried 4 times inside _http.get and 4 more times outside it: 16 requests per call, up to ~32 minutes spent on a single symbol at API_TIMEOUT = 120 when the upstream hangs rather than refuses. A dedicated _PayloadError now marks success: false responses, and the outer loop
catches only payload-level errors, so transport failures propagate at the
first exhaustion. Retry-on-transient-5xx behaviour is unchanged.
(#1)