duct

erwinrooijakkers 2020-12-23T13:40:36.055900Z

We are using *<https://github.com/duct-framework/database.sql.hikaricp|database.sql.hikaricp>*. 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)))

erwinrooijakkers 2020-12-23T13:49:54.056400Z

I see await-daemons

erwinrooijakkers 2020-12-23T13:50:28.056800Z

I think halts the connections on a crash or shutdown

erwinrooijakkers 2020-12-23T13:50:42.057200Z

đź‘Ť