Skip to content

Commit

Permalink
deploymentwatcher: reset progress deadline on promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross committed Feb 17, 2021
1 parent de20262 commit 22c6d14
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nomad/state/state_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -4046,6 +4046,10 @@ func (s *StateStore) UpdateDeploymentPromotion(msgType structs.MessageType, inde
continue
}

// reset the progress deadline
if status.ProgressDeadline > 0 && !status.RequireProgressBy.IsZero() {
status.RequireProgressBy = time.Now().Add(status.ProgressDeadline)
}
status.Promoted = true
}

Expand Down

0 comments on commit 22c6d14

Please sign in to comment.