kubernetes/pkg/controller/cronjob
Maciej Szulik af1c9e49c4
Update schedule logic to properly calculate missed schedules
Before this change we've assumed a constant time between schedule runs,
which is not true for cases like "30 6-16/4 * * 1-5".
The fix is to calculate the potential next run using the fixed schedule
as the baseline, and then go back one schedule back and allow the cron
library to calculate the correct time.

This approach saves us from iterating multiple times between last
schedule time and now, if the cronjob for any reason wasn't running for
significant amount of time.
2023-06-27 11:29:30 +02:00
..
config OWNERS cleanup - Jan 2021 Week 1 2022-01-10 08:14:29 -05:00
metrics Promote cronjob_job_creation_skew metric to stable 2022-11-04 13:55:32 +01:00
cronjob_controllerv2_test.go Promote CronJob TZ to GA 2023-03-07 12:58:57 +01:00
cronjob_controllerv2.go Promote CronJob TZ to GA 2023-03-07 12:58:57 +01:00
doc.go
injection.go Remove selflink references in different testing-related files 2022-01-14 12:58:05 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
utils_test.go Update schedule logic to properly calculate missed schedules 2023-06-27 11:29:30 +02:00
utils.go Update schedule logic to properly calculate missed schedules 2023-06-27 11:29:30 +02:00