Spring @Scheduled cron fixed time doesn't work with OS suspension

28 views Asked by At

I have a Java app running in windows 10 environment, it uses Spring 6 library and in particular @Scheduler annotation with a cron expression to run a process at midnight.

This process worked for a few but we have experienced an issue, the schedulation has been called in a completely wrong time of the day, it was 9.37am instead of midnight.

After few investigations I discovered that before the issue the computer has been suspended, so it looks like the scheduler doesn't work with the OS suspension. Is it possible? Is it an known problem?

0

There are 0 answers