(record-lag-metrics {:keys [metrics-registry aiven-conf retry-config
application-id metric-key topic]
:as _opts})
(start-polling {:keys [every-period-ms] :or {every-period-ms 300000} :as opts})
(with-exp-backoff config & body)
A cute little macro to please Dr. Dutton. So that he doesn't have to type #
A cute little macro to please Dr. Dutton. So that he doesn't have to type `#`
(with-exp-backoff-fn f)
(with-exp-backoff-fn
{:keys [initial-delay-ms delay-multiplier max-retries]
:or {initial-delay-ms 1000 delay-multiplier 2.5 max-retries 3}}
f)
Retries (f) up to max-retries
, waiting initial-delay-ms
for the first retry
and then with exponential larger waits (multiplied by delay-multiplier
).
NOTE: f must throw to trigger a retry
Retries (f) up to `max-retries`, waiting `initial-delay-ms` for the first retry and then with exponential larger waits (multiplied by `delay-multiplier`). NOTE: f *must* throw to trigger a retry
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close