-
Notifications
You must be signed in to change notification settings - Fork 205
Fix the bug that WAIT stage does not wait for the specified duration #1226
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
Conversation
| return originalStatus | ||
| default: | ||
| return model.StageStatus_STAGE_FAILURE | ||
| } |
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.
nit: Could you please change to use a return instead of the break at line 90.
for {
select {
case <- timer.C:
e.LogPersister.Infof("Waited for %v", totalDuration)
return model.StageStatus_STAGE_SUCCESS
case <-ticker.C:
e.LogPersister.Infof("%v elapsed...", time.Since(startTime))
case s := <-sig.Ch():
....
}
}
}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.
thanks, I fixed it in git commit --amend
821a992 to
62a7121
Compare
|
/trigger presubmits |
|
@nghialv: Your requested presubmits has been scheduled in response to this comment. |
|
@ShotaKitazawa Thank you very much. |
What this PR does / why we need it:
fix
WAITstage in KubernetesAppWhich issue(s) this PR fixes:
Fixes #1225
Does this PR introduce a user-facing change?: