File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/kotlin/no/nav/helse/flex/jobb Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ import no.nav.helse.flex.domene.UtbetalingUtbetalt
99import no.nav.helse.flex.logger
1010import no.nav.helse.flex.service.BrukerVedtak.Companion.mapTilRsVedtakWrapper
1111import no.nav.helse.flex.util.leggTilDagerIVedtakPeriode
12+ import org.springframework.scheduling.annotation.Scheduled
1213import org.springframework.stereotype.Component
1314import org.springframework.transaction.annotation.Transactional
1415import java.time.temporal.ChronoUnit
16+ import java.util.concurrent.TimeUnit
1517import kotlin.math.roundToInt
1618
1719@Component
@@ -23,6 +25,7 @@ class MigrerTilUtbetalingsdagerJobb(
2325) {
2426 val log = logger()
2527
28+ @Scheduled(initialDelay = 180 , fixedRate = 1 , timeUnit = TimeUnit .SECONDS )
2629 @Transactional(rollbackFor = [Exception ::class ])
2730 fun kj ørMigreringTilUtbetalingsdager () {
2831 log.info(" Migrerer gamle vedtak til nytt utbetalingsdager format" )
You can’t perform that action at this time.
0 commit comments