hiddeco / cronjobber

Cronjobber is a cronjob controller for Kubernetes with support for time zones
Apache License 2.0
244 stars 38 forks source link

My TZCronJob is never scheduled "No unmet start times for my-ns/my-job" #38

Open carlosjgp opened 3 years ago

carlosjgp commented 3 years ago

CronJobber is deployed on cronjobber NS and other regular CronJobs are deployed on NS zzzzz

To test my TZCronJob was deployed with schedule: */1 20 * * * @ 20.02 then changed to schedule: 15 20 * * * with the same result as below

There is a TODO just above that log statement. Am I suffering from a race condition of some sort? :( https://github.com/hiddeco/cronjobber/blob/75079784485e4c62db64d694ec17c93f63e782d3/pkg/controller/cronjobber/controller.go#L281

{"level":"debug","ts":"2020-11-05T20:12:58.892Z","caller":"cronjobber/controller.go:136","msg":"Found 1 groups"}
{"level":"debug","ts":"2020-11-05T20:12:58.901Z","caller":"cronjobber/controller.go:281","msg":"No unmet start times for my-ns/my-job"}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/controller.go:126","msg":"Found 16 jobs"}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/controller.go:133","msg":"Found 1 cronjobs"}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-1 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-1 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-2 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-2 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-3 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-3 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-4 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-4 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-5 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-5 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-6 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-6 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-7 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-7 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-8 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-8 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-9 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-9 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-10 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-10 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-11 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-12 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:67","msg":"Job with non-TZCronJob parent, name xxxxx-12 namespace zzzzz
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-14 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-15 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-16 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/utils.go:81","msg":"Unable to get parent uid from job xxxxx-17 in namespace zzzzz}
{"level":"debug","ts":"2020-11-05T20:13:08.919Z","caller":"cronjobber/controller.go:136","msg":"Found 1 groups"}
{"level":"debug","ts":"2020-11-05T20:13:08.929Z","caller":"cronjobber/controller.go:281","msg":"No unmet start times for my-ns/my-job"}