This commit is contained in:
2022-09-17 09:24:09 -07:00
parent 7e23b1e89a
commit 8b271e9e2a
4 changed files with 8 additions and 8 deletions

View File

@@ -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)))