integrant

teodorlu 2022-06-03T10:51:06.681729Z

Hey! Curious about how you guys handle graceful shutdown with integrant. Just a shutdown hook for (ig/halt! system)?

beetleman 2022-06-07T10:57:01.049689Z

if each component shutdown fully on halt

(defn -main
  [& _args]
  (let [app  (ig/init (system/create))
        stop #(ig/halt! app)]
    (log/info :system/started)
    (.addShutdownHook (Runtime/getRuntime) (Thread. stop))))
works quite well for me

👍 1
🙏 1