Heartbeats scheduled things so that I can do health on them
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user