Skip to content

Commit

Permalink
bug: 修复某些场景下取消滚动升级超时的问题; issue #42
Browse files Browse the repository at this point in the history
  • Loading branch information
zmberg committed Jun 3, 2019
1 parent 767fd34 commit 730fa97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ func (b *backend) CancelUpdateDeployment(ns string, name string) error {
for {
if deployment.IsInRolling && deployment.CurrRollingOp == types.DEPLOYMENT_OPERATION_DELETE {
times++
if times > 15 {
if times > 8 {
blog.Error("request cancelupdate deployment(%s.%s): in deleting taskgroups", ns, name)
return errors.New("deployment is deleting taskgroups, cannot cancelupdate now, try later")
}
Expand Down

0 comments on commit 730fa97

Please sign in to comment.