fix
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
[mount.core :as mount]
|
||||
[auto-ap.datomic :refer [conn]]
|
||||
[clojure.tools.logging :as log]
|
||||
[auto-ap.background.metrics :refer [metrics-setup container-tags logging-context]]
|
||||
[auto-ap.background.metrics :refer [metrics-setup container-tags container-data logging-context]]
|
||||
[unilog.context :as lc]))
|
||||
|
||||
(defn -main [& _]
|
||||
(lc/with-context {:background-job "square-loading-new"}
|
||||
(mount/start (mount/only #{#'conn #'metrics-setup #'container-tags #'logging-context}))
|
||||
(mount/start (mount/only #{#'conn #'metrics-setup #'container-tags #'logging-context #'container-data}))
|
||||
((heartbeat square/upsert-all "square-loading"))
|
||||
(mount/stop )
|
||||
(mount/stop )
|
||||
(log/info "Stopping Square loading")
|
||||
(System/exit 0)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user