I made a schedule by @Scheduled
@Scheduled(cron = "0 0 23 * * ?")
but the method trigged 9 PM or 10 PM everyday, it not only 1 second different, it for a long time
log:
2023-01-14 21:04:12,582 INFO c.e.t.b.d.c.DAGController [scheduling-1]
and different trigged time every day
the server runs on k8s
the pod date is correct, the server date is correct
Spring version : 5.1.6.RELEASE
need help, thanks
Comment From: cowcomic
add some infomation 1, @Scheduled used with @Async. There are three schedule task on 8AM, 10PM and 11PM, each one is finished quickly started early from logs. The first task after server starting started on wrong time 2, server and k8s pod use CST time, and time is correct. There is no rule for running time , the running time is different every day, and it is not a full point 3,restart pod ,restart server , repull image from harbor is useless
Comment From: bclozel
Spring Framework 5.1.x is out of support. Can you reproduce this issue on a supported version?
Comment From: cowcomic
OK,I will try Spring Framework new version and reply this issue
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.