Makes new square loading much faster, parallel.
This commit is contained in:
@@ -10,7 +10,8 @@
|
||||
(defn execute [name f]
|
||||
(try
|
||||
(lc/with-context {:background-job name}
|
||||
(mu/with-context {:background-job name}
|
||||
(mu/with-context {:background-job name
|
||||
:service name}
|
||||
(mount/start (mount/only #{#'conn #'metrics-setup #'container-tags #'logging-context #'container-data}))
|
||||
((heartbeat f name))
|
||||
(log/info "Stopping " name)
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
(:gen-class)
|
||||
(:require
|
||||
[auto-ap.jobs.core :refer [execute]]
|
||||
[auto-ap.square.core2 :as square2]))
|
||||
[auto-ap.square.core3 :as square3]))
|
||||
|
||||
(defn -main [& _]
|
||||
(execute "square2-loading" square2/upsert-all))
|
||||
(execute "square3-loading" square3/do-upsert-all))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user