You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A successful Job will most likely read as Failed. #127
I skip reaping Pods in the Succeeded phase in the pod placement helpers, so a finished Job no longer reads as Failed. I added a test for it in the pod placement controller tests. (PR: #128)
Hi @Sarthak-Shreshtha01 thanks for your interest, I think this is more complex than just skipping reaping Pods.
I agree we should not delete the succeeded Pods since the corresponding instances are already terminated when we get the status.
Exit codes are not recorded, every terminated instances is marked as Failed, that's the main problem for this issue. We should tell them apart, if exitcode is 0, succeeded, else, failed. Something like this.
We should add validation to the Job, only allow restartPolicy == Never, because we don't support restart the container today, we can only recreate the whole Pod which will recreate the instance.
When recreating the failed Pods, we should respect the backoffLimit of the Job, once we hit the limit, we should not delete the failed pods as well.
More advanced:
to avoid potential instance leak, once we have succeeded and failed Pods, we may still need to call the termination API but don't delete the Pods, let the Job controller to manage them.
We may have more gaps to support Job here but we can optimize them step by step.
Activity
kerthcet commentedon Oct 1, 2026
/milestone v0.2.0
kerthcet commentedon Oct 1, 2026
/help
Sarthak-Shreshtha01 commentedon Oct 1, 2026
I skip reaping Pods in the Succeeded phase in the pod placement helpers, so a finished Job no longer reads as Failed. I added a test for it in the pod placement controller tests. (PR: #128)
kerthcet commentedon Oct 1, 2026
Hi @Sarthak-Shreshtha01 thanks for your interest, I think this is more complex than just skipping reaping Pods.
More advanced:
We may have more gaps to support Job here but we can optimize them step by step.