From a952d4a72d1acbd6957f959eab8cdd0df226fab3 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Mon, 5 Feb 2018 16:37:07 -0600 Subject: [PATCH] Clarify comment --- scheduler/reconcile.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scheduler/reconcile.go b/scheduler/reconcile.go index 5e7b95f67..9817f97a3 100644 --- a/scheduler/reconcile.go +++ b/scheduler/reconcile.go @@ -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 {