Open bood opened 2 weeks ago
Welcome @bood!
It looks like this is your first PR to volcano-sh/volcano.
Thank you, and welcome to Volcano. :smiley:
/assign @lowang-bh
Thanks for your contributions. How about add a ut for changes?
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign lowang-bh
You can assign the PR to them by writing /assign @lowang-bh
in a comment when ready.
The full list of commands accepted by this bot can be found here.
Thanks for your contributions. How about add a ut for changes?
one e2e test is added
Is there any problem with CI? schedulingbase, schedulingaction, jobp all run ok on my laptop.
Should we add a Failed Status for podgroup?
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