mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
scheduler: remove unnecessary reconnecting and ignore allocset assignment (#26298)
These values aren't used anywhere, and the code is confusing as is.
This commit is contained in:
committed by
GitHub
parent
edd7b5b8e7
commit
973a554808
@@ -482,16 +482,14 @@ func (a *AllocReconciler) computeGroup(group string, all allocSet) (*ReconcileRe
|
||||
reconnect, stopAllocSet, stopAllocResult := a.reconcileReconnecting(reconnecting, all, tg)
|
||||
result.Stop = append(result.Stop, stopAllocResult...)
|
||||
|
||||
// Stop the reconciled allocations and remove them from the other sets
|
||||
// since they have been already handled.
|
||||
// Stop the reconciled allocations and remove them from untainted, migrate, lost
|
||||
// and disconnecting sets, since they have been already handled.
|
||||
result.DesiredTGUpdates[group].Stop += uint64(len(stopAllocSet))
|
||||
|
||||
untainted = untainted.difference(stopAllocSet)
|
||||
migrate = migrate.difference(stopAllocSet)
|
||||
lost = lost.difference(stopAllocSet)
|
||||
disconnecting = disconnecting.difference(stopAllocSet)
|
||||
reconnecting = reconnecting.difference(stopAllocSet)
|
||||
ignore = ignore.difference(stopAllocSet)
|
||||
|
||||
// Validate and add reconnecting allocations to the plan so they are
|
||||
// logged.
|
||||
|
||||
Reference in New Issue
Block a user