assigner: a have with no health counts as running for an acting wait where its engine states no running

This commit is contained in:
2026-11-16 00:02:21 +01:00
parent e78b3eea0a
commit 7548314b95
@@ -225,9 +225,10 @@ func (n Nodes) ActingRuns(e ActingEdge) (string, bool) {
}
if len(n.Running[e.Node]) == 0 {
// A node whose node-engine states no running (one from before G) is read from its have: a build of the part running
// healthy there ends the wait, whatever its version, as a running statement would (A-426). Read by the edge's version
// there, its health check not failed (such an engine may write no health), ends the wait, whatever its version, as a
// running statement would (A-426). Read by the edge's version
// only, a part placed there waited for ever (lead-47 2026-11-16: the indexer on novox for the assigner on ace).
if h, ok := n.Haves[e.Node][e.Part]; ok && h.Fp != "" && healthy(h, h.Fp) {
if h, ok := n.Haves[e.Node][e.Part]; ok && h.Fp != "" && h.Phase == nodeengineclient.PhaseRunning && !failed(h) {
return h.Fp, true
}
return e.Fp, n.Runs(e)