0

I have developed a spring boot cron job scheduled to run every 15 minutes which is working smoothly on Dev and INT ENV, the issue is on PROD the job is not executing at all, upon investigation I figured out there is a Kubernetes cron job that is scheduled to run daily on 12 midnight, my assumption is then the reason spring boot cron job is not executing is because of this Kubernetes job maybe it taking preference or maybe overring some setting for spring boot cron job.

below are snapshots of my jobs::

kubernetes job

spring boot cron job

can you assist with what can I do to make sure the spring boot cron job is executing even though Kubernetes is scheduled for 12 midnight

Siya Nxuseka
  • 67
  • 3
  • 8
  • I think your CronJobs created inside your application will not appear in k8s since k8s doesn't know about these cronjobs. They will run as part of your application at the desired time and might provide output in your application log. I will recommend moving this cronjob to a separate pod with CronJob type. – zer0 Jul 21 '22 at 22:14

0 Answers0