<p>I am using spring cloud dataflow on kubernetes to run my batch jobs as tasks. I have put a scheduler which runs the job every hour. EVenthough in the UI I can see that there have been about 30 executions, in the kubernetes UI or terminal I can only see the pods and jobs of the last 3 executions. So I wanted to know if the scheduler deletes all the previous pods and if so how can I change that lifecycle.</p>

Siddhant Sorann
<p>Check what is your <code>.spec.successfulJobsHistoryLimit</code> in job spec. Default <code>successfulJobsHistoryLimit</code> is 3.</p>

<p>Ref: <a href="https://kubernetes.io/docs/tasks/job/automated-tasks-with-cron-jobs/#jobs-history-limits" rel="nofollow noreferrer">Jobs History Limits</a></p>
