Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #121 from jrasell/gh-120
Browse files Browse the repository at this point in the history
Fix incorrect searching of allocs causing missed allocs in jobs.
  • Loading branch information
jrasell authored Jan 3, 2020
2 parents 69b6720 + cde24af commit 3ab0b32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/autoscale/nomad.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ func (ae *autoscaleEvaluation) getJobAllocations() (map[string]*nomadResources,
// GH-70: jobs can have a mix of groups with scaling policies, and groups without. We need
// to safely check the policy.
if v, ok := ae.policies[allocs[i].TaskGroup]; !ok {
break
continue
} else {
if !v.Enabled {
break
continue
}
}

Expand Down

0 comments on commit 3ab0b32

Please sign in to comment.