-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
La til en (uimplementert) scheduled task for overvåking
- Loading branch information
Jan Kroken
committed
Sep 29, 2023
1 parent
0bf953c
commit e6105c7
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...pensjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/tasks/StatusCheckTask.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.tasks | ||
|
||
import org.slf4j.LoggerFactory | ||
import org.springframework.scheduling.annotation.Scheduled | ||
|
||
|
||
class StatusCheckTask { | ||
|
||
companion object { | ||
private val log = LoggerFactory.getLogger(this::class.java) | ||
} | ||
|
||
@Scheduled(fixedDelay = 120000, initialDelay = 30000) | ||
fun check() { | ||
log.info("Sjekker og oppdaterer status for overvåking") | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...otlin/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/config/StatusConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.config | ||
|
||
import no.nav.pensjon.opptjening.omsorgsopptjening.start.innlesning.barnetrygd.tasks.StatusCheckTask | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.scheduling.annotation.EnableScheduling | ||
|
||
@Configuration | ||
@EnableScheduling | ||
class StatusConfig { | ||
|
||
@Bean | ||
fun statusCheckTask() { | ||
StatusCheckTask() | ||
} | ||
} |