assigner: a part no running statement names is read from its have for an acting wait, on every node (A-426)

This commit is contained in:
2026-11-16 00:02:55 +01:00
parent 7548314b95
commit 7c338230de
@@ -223,18 +223,19 @@ func (n Nodes) ActingRuns(e ActingEdge) (string, bool) {
if n.Running == nil {
return e.Fp, n.Runs(e)
}
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
// 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).
r, ok := n.Running[e.Node][e.Part]
if !ok {
// No running statement names the part on its node: its node-engine states running only of what it applied itself (a
// part placed before, the node-engine itself, or an engine from before G states none), so the part is read from its
// have: a build running there, its health check not failed (such an engine may write no health), ends the wait,
// whatever its version, as a 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 and novox's own node-engine).
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)
}
r, ok := n.Running[e.Node][e.Part]
if !ok || r.Stopped || r.Fingerprint == "" {
if r.Stopped || r.Fingerprint == "" {
return "", false
}
if r.Fingerprint == e.Fp || e.Seat == "" || n.Serves == nil {