Fork me on GitHub
#duct
<
2020-12-23
>
erwinrooijakkers13:12:36

We are using **. When an application crashes, are Integrant’s halt keys called and database connections thus closed?

(defmethod ig/halt-key! :duct.database.sql/hikaricp [_ {:keys [spec]}]
  (let [ds (unwrap-logger (:datasource spec))]
    (hikari-cp/close-datasource ds)))

erwinrooijakkers13:12:54

I see await-daemons

erwinrooijakkers13:12:28

I think halts the connections on a crash or shutdown