I created a scheduler which runs after every 30 seconds. @Scheduled(fixedRateString = "${scheduler.time:30000}")
The Shedlock for this has been configured as @EnableSchedulerLock(defaultLockAtMostFor = "PT30S")
.
I have an entry in the Shedlock table as:
lock_until : 2021-07-20 14:53:26.446
locked_at : 2021-07-20 14:53:24.585
And scheduler is not running at all.
I have few questions:
Shouldn't the lock have been released after 30 seconds ?
Is the time for running the scheduler and the Sherlock is same as 30 seconds, which causes the issue ?
Now that I am stuck, what is the way to release the lock ? Should I just delete the entry from the shedlock table ?
Thanks.