Clarify comment

This commit is contained in:
Preetha Appan
2018-02-05 16:37:07 -06:00
parent 87d0523d55
commit a952d4a72d

View File

@@ -160,6 +160,9 @@ func (a *allocReconciler) Compute() *reconcileResults {
// Detect if the deployment is paused
if a.deployment != nil {
// Detect if any allocs associated with this deploy have failed
// Failed allocations could edge trigger an evaluation before the deployment watcher
// runs and marks the deploy as failed. This block makes sure that is still
// considered a failed deploy
failedAllocsInDeploy := false
for _, as := range m {
for _, alloc := range as {