mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
Fix node drain
This commit is contained in:
@@ -272,7 +272,7 @@ func (s *GenericScheduler) computeJobAllocs() error {
|
||||
s.limitReached = evictAndPlace(s.ctx, diff, diff.migrate, allocMigrating, &limit)
|
||||
|
||||
// Treat non in-place updates as an eviction and new placement.
|
||||
s.limitReached = evictAndPlace(s.ctx, diff, diff.update, allocUpdating, &limit)
|
||||
s.limitReached = s.limitReached || evictAndPlace(s.ctx, diff, diff.update, allocUpdating, &limit)
|
||||
|
||||
// Nothing remaining to do if placement is not required
|
||||
if len(diff.place) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user