Making it possible to run one-off square

This commit is contained in:
2022-09-15 09:20:17 -07:00
parent 46cfb440ef
commit 8130f89d91
8 changed files with 380 additions and 51 deletions

View File

@@ -0,0 +1,11 @@
(ns auto-ap.jobs.square
(:gen-class)
(:require [auto-ap.square.core :as square]
[auto-ap.utils :refer [heartbeat]]
[mount.core :as mount]
[auto-ap.datomic :refer [conn]]))
(defn -main [& _]
(mount/start (mount/only #{#'conn}))
((heartbeat square/upsert-all "square-loading")))