I'm using Shedlock version 4.22.0 with JDBC integration. I have one configuration class
@Configuration
@EnableScheduling
@EnableSchedulerLock(defaultLockAtMostFor = "PT30S")
public class ShedLockConfiguration {
@Bean
public LockProvider lockProvider(DataSource dataSource) {
return new JdbcTemplateLockProvider(dataSource);
}
}
For execution I'm using annotation @SchedulerLock eg.
@SchedulerLock(name = "MyTask", lockAtMostFor = "PT1M", lockAtLeastFor = "PT1M")
Everything works perfectly on a local PC but when app is deployed on Kubernetes (AKS), no task are triggered. Logs are empty. App after startup does nothing
I added also debug to spring configuration on
logging:
level:
net.javacrumbs.shedlock: DEBUG
Nothing is logged