Heartbeats scheduled things so that I can do health on them

This commit is contained in:
2022-06-21 15:48:50 -07:00
parent 47d5c3911a
commit 183ebf9da5
4 changed files with 24 additions and 5 deletions

View File

@@ -2,9 +2,9 @@
(:require
[auto-ap.datomic :refer [conn remove-nils]]
[auto-ap.logging :refer [info-event]]
[auto-ap.utils :refer [dollars-0? dollars=]]
[clj-time.core :as t]
[auto-ap.utils :refer [dollars-0? dollars= heartbeat]]
[clj-time.coerce :as c]
[clj-time.core :as t]
[clojure.tools.logging :as log]
[com.unbounce.dogstatsd.core :as statsd]
[datomic.api :as d]
@@ -423,5 +423,5 @@
(log/error e)))))
(mount/defstate touch-broken-ledger-worker
:start (scheduler/every reconciliation-frequency touch-broken-ledger)
:start (scheduler/every reconciliation-frequency (heartbeat touch-broken-ledger :touch-broken-ledger))
:stop (scheduler/stop touch-broken-ledger-worker))