Skip to content

Commit f969162

Browse files
committed
Fjern uttrekksjobb
1 parent a2babf6 commit f969162

File tree

2 files changed

+0
-106
lines changed

2 files changed

+0
-106
lines changed

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ 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
98
import kotlinx.coroutines.launch
109
import kotlinx.coroutines.runBlocking
1110
import mu.KotlinLogging
@@ -128,19 +127,5 @@ fun main() {
128127
}
129128
)
130129
}
131-
132-
Uttrekksjobb(dataSource, inntektskomponentHttpClient).also {
133-
fixedRateTimer(
134-
name = "uttrekk",
135-
initialDelay = TimeUnit.MINUTES.toMillis(1),
136-
period = TimeUnit.HOURS.toMillis(1),
137-
action = {
138-
LOGGER.info { "UTTREKK" }
139-
runBlocking { it.hentInntekterOgSjekk() }
140-
LOGGER.info { "UTTREKK" }
141-
}
142-
)
143-
}
144-
145130
}
146131
}

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

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)