Using the node in the req to unblock evals
This commit is contained in:
parent
fd3c05a2be
commit
778167e26f
|
@ -158,13 +158,7 @@ func (n *nomadFSM) applyUpsertNode(buf []byte, index uint64) interface{} {
|
|||
// Unblock evals for the nodes computed node class if it is in a ready
|
||||
// state.
|
||||
if req.Node.Status == structs.NodeStatusReady {
|
||||
node, err := n.state.NodeByID(req.Node.ID)
|
||||
if err != nil {
|
||||
n.logger.Printf("[ERR] nomad.fsm: looking up node %q failed: %v", req.Node.ID, err)
|
||||
return err
|
||||
|
||||
}
|
||||
n.blockedEvals.Unblock(node.ComputedClass)
|
||||
n.blockedEvals.Unblock(req.Node.ComputedClass)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue