steprun: an unread ask whose refusal cannot be written is given back; the unwritten-end and said-end cases assert what they claim; kit case RunsCounted
Builds: design 47 G §24; lead answers A-489a, A-489b Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
This commit is contained in:
@@ -632,7 +632,9 @@ func (p *Puller) refuseUnread(msg *Pulled, why error) {
|
||||
step := sdkstep.Step{ID: probe.ID, Tool: tool, Node: p.Node, State: sdkstep.StepRefused, Started: at, Ended: at,
|
||||
Reason: fmt.Sprintf("this build module on %s cannot read the ask: %v", p.Node, why), Owner: buildrun.Owner}
|
||||
if werr := writeEnd(p.Put, key, step); werr != nil {
|
||||
p.logf("the unread ask %s cannot be answered on %s: %v", probe.ID, p.Node, werr)
|
||||
p.logf("the unread ask %s cannot be answered on %s, so it is given back: %v", probe.ID, p.Node, werr)
|
||||
_ = msg.Nak() // A-489a: an end that could not be written is given back, never acknowledged
|
||||
return
|
||||
} else {
|
||||
p.logf("an ask refused: %v", why)
|
||||
_ = msg.Ack() // A-489: ended and written, so it leaves the work queue
|
||||
|
||||
Reference in New Issue
Block a user