You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stats --queue does not finish: 1821 serial API calls, no bound, no progress #56
runpool stats --queue joins local telemetry to GitHub with one gh api call per unique run, serially. On this machine that is 1821 calls against 8242 telemetry lines.
It does not finish. Observed: killed at ten minutes, still running, having produced exactly one line of output in that time:
Joining the local records to GitHub: one API call per run, so give it a moment.
stderr empty. So the honest description is not "slow" but "does not complete within any window a person will wait", and there is nothing on screen to distinguish it from a hang.
That is the same failure shape --drain was deliberately built to avoid — a bounded silent wait being indistinguishable from a stuck one — in a command that predates it.
contrib/telemetry-join.sh loops sort -u | while read repo run_id; do gh api ... done, so the call count is the unique-run count and the calls do not overlap.
Options
Say how many runs it is joining, and count down. This is the necessary one rather than the nicest: right now a command that is working and a command that is broken are the same experience.
The join is embarrassingly parallel. 1821 serial round trips is the entire cost, and nothing about run N depends on run N-1.
A completed run's job timings never change, so a previously joined run never needs fetching twice.
Bound the window by default. Thirteen days of history is not obviously the right input to a capacity question.
Not a defect: the exit code
An earlier report of this command exiting 2, and later 1, appeared in discussion. Both were artifacts of the harness measuring it — a foreground-to-background relocation in one case and a timeout's SIGTERM (143) in the other — not of the tool. _rp_stats_queue returns only 0 or 1 on every coded path; stubbing the join to fail (exit 1, SIGTERM, stderr output) gives 1, and stubbing it to succeed (realistic rows, and header-only) gives 0. There is nothing to fix here and this note exists so it is not re-investigated.
changed the title [-]stats --queue makes one serial API call per run, with no bound and no progress[/-][+]stats --queue does not finish: 1821 serial API calls, no bound, no progress[/+]on Sep 1, 2026
Activity
[-]stats --queue makes one serial API call per run, with no bound and no progress[/-][+]stats --queue does not finish: 1821 serial API calls, no bound, no progress[/+]