-
Notifications
You must be signed in to change notification settings - Fork 953
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 bug in task dependsOn #2351
Conversation
e4f370d
to
a205406
Compare
/assign @Thor-wl @shinytang6 @william-wang |
if err != nil { | ||
klog.Errorf("Failed to get pod %v/%v %v", job.Namespace, podName, err) | ||
continue | ||
// If pod is not found. There are 2 possibilities. |
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.
It's OK for me. Some small tip:
- The commments can be reorganized to be simple.
- The last
else
branch is redudant and can be removed.
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.
@Thor-wl
Thanks for you suggestions. I made some changes.
Signed-off-by: hwdef <hwdefcom@outlook.com>
a205406
to
cd18865
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Thor-wl The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fix: #2345 #2284 #2130
This PR can greatly reduce the chance of bug triggering.
As long as the user does not deploy a vcjob with the same name again in less than
--detection-period-of-dependson-task
, the bug will not be triggered.The default value of
--detection-period-of-dependson-task
is 100 milliseconds.