So, pods are meant to have restarts frequently, my concern is that, scheduler has a state somewhere to keep track when was the last run of X task. When a pod restarts, this state will restart and the timer will restart I guess (?). Is there any way to retrieve that state and store it somewhere, like S3 ...
For example, when I say:
Run X task every 4 hours
2 hours pass, the job will run in 2 hours, I restart the pod, now that state is lost and that job will again, take 4 hours to run.
So, pods are meant to have restarts frequently, my concern is that, scheduler has a state somewhere to keep track when was the last run of X task. When a pod restarts, this state will restart and the timer will restart I guess (?). Is there any way to retrieve that state and store it somewhere, like S3 ...
For example, when I say:
2 hours pass, the job will run in 2 hours, I restart the pod, now that state is lost and that job will again, take 4 hours to run.