Hey guys, I am trying to figure out how can I make...
# ktor
s
Hey guys, I am trying to figure out how can I make my ktor app free all used resources on shutdown. I am using the event
ApplicationStopping
, it works well with the tests but when I run the app locally with Intellij or by using
./gradlew run
the handler never gets called when I stop the app and I don’t see the logs
Application stopping
&
Application stopped
. Is there any way to make sure the handler always gets called even when stopping the app from intellij or with ./gradlew ?
d
I think it only works with SIGTERM and Intellij might be sending -9...
👍 1