Skip to content

Commit e2c5455

Browse files
committed
Debug uttrekksjobb
1 parent 52dcbbb commit e2c5455

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dp-inntekt-api/src/main/kotlin/no/nav/dagpenger/inntekt/Application.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import io.ktor.server.engine.embeddedServer
55
import io.ktor.server.engine.stop
66
import io.ktor.server.netty.Netty
77
import io.prometheus.client.hotspot.DefaultExports
8+
import kotlinx.coroutines.delay
89
import kotlinx.coroutines.launch
910
import kotlinx.coroutines.runBlocking
1011
import mu.KotlinLogging
@@ -128,8 +129,10 @@ fun main() {
128129
)
129130
}
130131

131-
Uttrekksjobb(dataSource, inntektskomponentHttpClient).also {
132-
it.hentInntekterOgSjekk()
132+
val uttrekksjobb = Uttrekksjobb(dataSource, inntektskomponentHttpClient)
133+
launch {
134+
delay(10000L)
135+
uttrekksjobb.hentInntekterOgSjekk()
133136
}
134137
}
135138
}

0 commit comments

Comments
 (0)