Skip to content

Commit

Permalink
chore: added in ServerReady
Browse files Browse the repository at this point in the history
  • Loading branch information
MikAoJk committed Jan 23, 2025
1 parent 8c73a8a commit e79cb0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/no/nav/syfo/plugins/LifecycleHooks.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import no.nav.syfo.ApplicationState

fun Application.configureLifecycleHooks(applicationState: ApplicationState) {

monitor.subscribe(ApplicationStarted) { applicationState.ready = true }
monitor.subscribe(ApplicationStarted) { applicationState.alive = true }
monitor.subscribe(ServerReady) { applicationState.ready = true }
monitor.subscribe(ApplicationStopped) {
applicationState.ready = false
Expand Down

0 comments on commit e79cb0f

Please sign in to comment.