-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Correctly populates job.Status.Succeeded when a job gets completed #4653
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
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @kev1N916, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
[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 |
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.
Code Review
This pull request correctly fixes a bug where the status of completed jobs was not being populated with the number of succeeded and failed pods. The change introduces logic to account for retained pods when a job is killed.
My review includes two main points:
- A high-severity issue where targeted pod/task kills will lead to incorrect job status because retained pods are not being accounted for.
- A medium-severity suggestion to refactor the pod processing loops to reduce code duplication and improve maintainability.
Overall, the core change is correct, but the related logic for targeted kills needs to be addressed to prevent incorrect behavior.
dfadff8
to
0b2632c
Compare
@hwdef Could you review this when you find the time? |
27ae2ad
to
99395fb
Compare
Signed-off-by: Kevin Jacob <[email protected]>
99395fb
to
8c454c3
Compare
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently after a job is submitted and is completed the job.status.succeeded and job.status.failed fields do not get populated.
When the Job is in the Running Phase we are able to see the status of all the pods

However as show in #4616 when the pod is in the completed phase we were not able to see the status of any of the pods.
Now we will be able to see the status of the pods even in the Completed phase

Which issue(s) this PR fixes:
Fixes #4616