Skip to content

Commit

Permalink
more...
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusev committed Jun 4, 2021
1 parent 2ef6c39 commit 26a6ac9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions nais-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ spec:
liveness:
path: /isAlive
port: 8080
initialDelay: 999999
timeout: 99999
initialDelay: 20
timeout: 20
readiness:
path: /isReady
port: 8080
initialDelay: 99999
timeout: 99999
initialDelay: 20
timeout: 20
replicas:
min: 1
max: 1
Expand Down
9 changes: 5 additions & 4 deletions src/main/kotlin/no/nav/fo/veilarbvarsel/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import io.ktor.jackson.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import no.nav.fo.veilarbvarsel.config.ApplicationContext
import no.nav.fo.veilarbvarsel.config.system.features.BackgroundJob
import no.nav.fo.veilarbvarsel.config.system.healthModule
import org.slf4j.LoggerFactory

Expand All @@ -31,9 +32,9 @@ fun Application.mainModule(appContext: ApplicationContext = ApplicationContext()
}
}

// install(BackgroundJob.BackgroundJobFeature("Events Consumer")) {
// job = appContext.eventConsumer
// }
install(BackgroundJob.BackgroundJobFeature("Events Consumer")) {
job = appContext.eventConsumer
}

appContext.eventConsumer.run()
// appContext.eventConsumer.run()
}

0 comments on commit 26a6ac9

Please sign in to comment.