Skip to content

Commit

Permalink
Only ignore rescheduled allocations if they got stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmood Ali committed Sep 15, 2020
1 parent c6848d3 commit a80ccb8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scheduler/reconcile_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ func (a allocSet) filterByRescheduleable(isBatch bool, now time.Time, evalID str
var eligibleNow, eligibleLater bool
var rescheduleTime time.Time

// Ignore allocs that have already been rescheduled
if alloc.NextAllocation != "" {
// Ignore failing allocs that have already been rescheduled
// only failed allocs should be rescheduled, but protect against a bug allowing rescheduling
// running allocs
if alloc.NextAllocation != "" && alloc.TerminalStatus() {
continue
}

Expand Down

0 comments on commit a80ccb8

Please sign in to comment.