The pipeline runner reads its step log by sequence, opening no consumer (design 47 G §330; issue 1982) #357

Merged
mesh-tools merged 1 commits from fix/steplog-read into main 2026-11-23 13:00:20 +00:00
1 Commits
Author SHA1 Message Date
jschoubben 0f7d9290e0 Read the step log by sequence, with no consumer per read
The runner's ageing read the step log through a new ordered consumer at
every retention of every step's end and never removed it: 604 consumers
in 11 minutes, each starting tens of thousands of entries back, ran the
bus at 196% CPU (issue 1982, note 16). The log is now read entry by
entry with the stream's own message get (next entry of the log's
subjects at or after the sequence, so deleted ones are passed over),
and each retention reads its oldest unaged entry alone first: while it
is not past the retention nothing after it is, so a step's end reads
one entry per retention, not twenty.

Builds: design 47 G §330
2026-11-23 13:57:47 +01:00