title: Job not running on scheduled time - Kubernetes CronJob
body: <p>Cronjobs are not running any job on its scheduled times, the jobs runs only when one or more cronjobs are deleted. Is there some cronjob number limit ? Where to get log messages of this problem?</p>
  <p>EDIT:
  I have exactly the same environment for development and production working perfectly, this only occurs in testing environment. This problem occurs daily and the workaround that I found was to delete one or more cronjobs to run what I want in that moment.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>---
  apiVersion: batch/v1beta1
  kind: CronJob
  metadata:
    name: rcj-homebroker-bolsa
    namespace: &lt;KUBE_NAMESPACE&gt;
  spec:
    schedule: "0 14 * * 1-5"
    startingDeadlineSeconds: 600
    concurrencyPolicy: Forbid
    successfulJobsHistoryLimit: 5
    failedJobsHistoryLimit: 5
    jobTemplate:
      spec:
        activeDeadlineSeconds: 18000
        backoffLimit: 0
        template:
          metadata:
            labels:
              cronjob: rcj-homebroker-bolsa
        template:
          spec:
            containers:
            - name: rcj-homebroker-bolsa
              image: &lt;DOCKER_TAG&gt;
              command: ["/bin/bash"]
              args: ["./processBolsa.sh"]
              lifecycle:
                preStop:
                  exec:
                    command:
                    - /bin/bash
                    - pre-stop.sh</code></pre>
  </div>
  </div>
  </p>