(do-poll-errors
{:keys [conn system-error on-system-error on-system-recovery healthy?
healthy-allowed-error-time]
:or {on-system-error
(fn [] (log/error "There are yoltq queues which have errors") nil)
on-system-recovery (fn [] (log/info "Yoltq recovered"))}
:as config}
now-ms)
(handle-error-count {:keys [errors last-notify state]
:or {errors [] last-notify 0 state :recovery}}
{:keys [system-error-min-count
system-error-callback-backoff]
:or {system-error-min-count 3}}
now-ms
error-count)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close