diff --git a/src/main/kotlin/no/nav/klage/config/SchedulingConfiguration.kt b/src/main/kotlin/no/nav/klage/config/SchedulingConfiguration.kt index 3f03f583..381f1ac4 100644 --- a/src/main/kotlin/no/nav/klage/config/SchedulingConfiguration.kt +++ b/src/main/kotlin/no/nav/klage/config/SchedulingConfiguration.kt @@ -7,12 +7,14 @@ import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.jdbc.core.JdbcTemplate import org.springframework.scheduling.annotation.EnableAsync +import org.springframework.scheduling.annotation.EnableScheduling import javax.sql.DataSource @Configuration @EnableSchedulerLock(defaultLockAtMostFor = "10m") @EnableAsync +@EnableScheduling class SchedulingConfiguration { @Bean diff --git a/src/main/resources/application-dev-gcp.yml b/src/main/resources/application-dev-gcp.yml index 67864199..5ee0b95d 100644 --- a/src/main/resources/application-dev-gcp.yml +++ b/src/main/resources/application-dev-gcp.yml @@ -20,7 +20,7 @@ FSS_CLUSTER: dev-fss #STS_APIKEY #PDL_APIKEY -DRAFT_CLEANUP_CRON: 0 0 13 * * * +DRAFT_CLEANUP_CRON: 0 13 13 * * * MAX_DRAFT_AGE_IN_DAYS: 90 TENANT_ID: 966ac572-f5b7-4bbe-aa88-c76419c0f851