- Notifications
You must be signed in to change notification settings - Fork 64
pod comp status - 3 #201
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
pod comp status - 3 #201
Conversation
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.
The managequeuejob() is where all state changes should occur but I'm not seeing it in the function. Also, please add suggested test cases to PR. Thanks!
I added the state change function in |
|
Review was done over call and we changed the design
| @dmatch01 Thanks for the review, All test cases pass now |
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.
Thank for the latest changes. Please see addition suggestion related to performance and additional test case needed.
| if qj.Status.CanRun && qj.Status.State != arbv1.AppWrapperStateActive && | ||
| qj.Status.State != arbv1.AppWrapperStateCompleted && | ||
| qj.Status.State != arbv1.AppWrapperStateRunningHoldCompletion { |
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.
This condition will never happen due to the first if statement added above. Please confirm my logic...
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.
This condition does happen as confirmed by the test cases, it does set AppwrapperRunnable in the conditions block:
Conditions: Last Transition Micro Time: 2022-09-26T23:24:37.074294Z Last Update Micro Time: 2022-09-26T23:24:37.074294Z Status: True Type: Init Last Transition Micro Time: 2022-09-26T23:24:37.074605Z Last Update Micro Time: 2022-09-26T23:24:37.074604Z Reason: AwaitingHeadOfLine Status: True Type: Queueing Last Transition Micro Time: 2022-09-26T23:24:37.085727Z Last Update Micro Time: 2022-09-26T23:24:37.085726Z Reason: FrontOfQueue. Status: True Type: HeadOfLine Last Transition Micro Time: 2022-09-26T23:24:37.184950Z Last Update Micro Time: 2022-09-26T23:24:37.184950Z Reason: AppWrapperRunnable Status: True Type: Dispatched Last Transition Micro Time: 2022-09-26T23:24:39.074060Z Last Update Micro Time: 2022-09-26T23:24:39.074060Z Reason: PodsRunning Status: True Type: Running Last Transition Micro Time: 2022-09-26T23:24:44.100438Z Last Update Micro Time: 2022-09-26T23:24:44.100438Z Reason: PodsCompleted Status: True Type: Completed pkg/controller/queuejobresources/genericresource/genericresource.go Outdated Show resolved Hide resolved
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.
@asm582 This PR is very close to merging. See a couple of minor suggestions.
pkg/controller/queuejobresources/genericresource/genericresource.go Outdated Show resolved Hide resolved
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.
Please open issue for if statement comment.
| if len(genericItem.CompletionStatus) > 0 { | ||
| countCompletionRequired = countCompletionRequired + 1 |
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.
Closing, outdated comment.
| LGTM, great! |
Manually tested:
manageQueueJob