Set up some debugging features for square jobs.

This commit is contained in:
2023-01-21 21:18:18 -08:00
parent 7a8267f09f
commit 221adb24f8
2 changed files with 62 additions and 63 deletions

View File

@@ -12,7 +12,8 @@
(lc/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}))
(mount/start (mount/only #{#'conn #'metrics-setup #'container-tags #'logging-context #'container-data }))
(start-server :port 9000 :bind "0.0.0.0" #_#_:handler (cider-nrepl-handler))
((heartbeat f name))
(log/info "Stopping " name)
(Thread/sleep 15000)