fsm attach UnblockNode on node updates
This commit is contained in:
parent
8157a7b6f8
commit
ea275d5ce7
|
@ -344,6 +344,7 @@ func (n *nomadFSM) applyStatusUpdate(buf []byte, index uint64) interface{} {
|
||||||
|
|
||||||
}
|
}
|
||||||
n.blockedEvals.Unblock(node.ComputedClass, index)
|
n.blockedEvals.Unblock(node.ComputedClass, index)
|
||||||
|
n.blockedEvals.UnblockNode(req.NodeID, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -415,6 +416,7 @@ func (n *nomadFSM) applyNodeEligibilityUpdate(buf []byte, index uint64) interfac
|
||||||
if node != nil && node.SchedulingEligibility == structs.NodeSchedulingIneligible &&
|
if node != nil && node.SchedulingEligibility == structs.NodeSchedulingIneligible &&
|
||||||
req.Eligibility == structs.NodeSchedulingEligible {
|
req.Eligibility == structs.NodeSchedulingEligible {
|
||||||
n.blockedEvals.Unblock(node.ComputedClass, index)
|
n.blockedEvals.Unblock(node.ComputedClass, index)
|
||||||
|
n.blockedEvals.UnblockNode(req.NodeID, index)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -760,6 +762,7 @@ func (n *nomadFSM) applyAllocClientUpdate(buf []byte, index uint64) interface{}
|
||||||
}
|
}
|
||||||
|
|
||||||
n.blockedEvals.UnblockClassAndQuota(node.ComputedClass, quota, index)
|
n.blockedEvals.UnblockClassAndQuota(node.ComputedClass, quota, index)
|
||||||
|
n.blockedEvals.UnblockNode(node.ID, index)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue