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 {