Dave
02/25/2021, 7:31 PMJosh Greenhalgh
02/25/2021, 7:32 PMDave
02/25/2021, 7:42 PMZanie
CreateNamespacedJob
) does not check this and will still run the flow/job as expected. In this sense, you shouldn't encounter a case where a job is not run. They do not explain the case where multiple jobs are created, I presume this would be due to a race condition between multiple CronControllers. We do not recommend running more than a single agent in a cluster (because it does not improve performance usually) so this shouldn't occur. Even with multiple agents running, it is unlikely that they are started at the exact same time and would have differing clocks.Dave
02/25/2021, 8:50 PMDave
02/26/2021, 7:24 AMKarsten Fyhn
02/26/2021, 7:28 AMZanie
CronJobs
which uses a CronManager
to create Jobs
. The Jobs
API will always succeed in creating a single job. The concern then would be that the job could create multiple pods (which should only ever happen in the failure case), see https://kubernetes.io/docs/concepts/workloads/controllers/job/#handling-pod-and-container-failures for details on that.