-
Notifications
You must be signed in to change notification settings - Fork 971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: mark PodGroup completed when pod fails #3807
base: master
Are you sure you want to change the base?
Conversation
Welcome @bood! |
d2d3f0a
to
527fa13
Compare
/assign @lowang-bh |
Thanks for your contributions. How about add a ut for changes? |
527fa13
to
ab6e03b
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ab6e03b
to
1521c91
Compare
one e2e test is added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
Is there any problem with CI? schedulingbase, schedulingaction, jobp all run ok on my laptop. |
0f51a17
to
9cc95d8
Compare
Signed-off-by: bood <boodweb@gmail.com>
9cc95d8
to
e149f45
Compare
Should we add a Failed Status for podgroup? |
For now, I don't see any logic in volcano that cares about how the job completes. So perhaps we can just keep it simple. However, I'm not sure whether the state should revert to PodGroupPending when it's already in PodGroupCompleted, say the pods are deleted after job failure. I saw similar case in issue #2208 } else if jobInfo.PodGroup.Status.Phase != scheduling.PodGroupInqueue {
status.Phase = scheduling.PodGroupPending
} |
Similar to
api.Succeeded
, when pods are inapi.Failed
state, PodGroup should also be marked as Completed