Repository navigation
loop: the drain on request (SIGUSR1); no page says the loop sends - #259
Merged
Merged
Conversation
loop.md gains "Draining on request": what SIGUSR1 does, how to send it to a process and to a systemd unit's main process alone (systemctl kill --kill-whom=main --signal=USR1), exit 2, and that SIGTERM, SIGINT and run stop still end work at once. The tool page's exit table and loop entry name it. Every statement that the loop sends packet sets or sweeps is corrected to what the code does since rapid 680 (loop.md's opening, plain terms, one pass and item 6, --local; migration.md; index.md); the measurements of the publishing loop are kept, marked as of then (loop.md, foundation.md). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
This is the documentation of the loop's drain on request, Caltech-IPAC/rapid pull request "loop: drain on request (SIGUSR1)" (branch
loop-drain/1-drain), and the correction of every page that still says the loop sends packet sets. The loop stopped sending with rapid PR 680.system/loop.md: a new section, Draining on request. It covers what SIGUSR1 does, how to send it to a process and to a systemd unit's main process alone (systemctl --user kill --kill-whom=main --signal=USR1 <unit>, with the loopexeced as the unit's main process), that the loop exits 2 (1 with a failed job), and that SIGTERM, SIGINT andrun stopstill end work at once. The exit-code table gains the 2 row. The opening, "In plain terms", "One pass" and its item 6, and--localnow say what the code does: a pass sends nothing, each packet job sends its own set, andrapidpipe publish --runbeside the loop is the recovery sweep with itsSETTLE_S(3,660 s) window and itswaiting,heldandlatefields. The old item 6 named a 300 s window and the fieldssets_waitingandsets_late, which do not exist. The two measurements of a publishing pass are kept, marked as of then.system/tool.md: the exit table's 2 row and theloopentry name the drain.system/migration.mdline 48 andsystem/index.mdline 35: no longer "each pass ending at the Kafka sweep" or "to the Kafka recovery sweep".system/foundation.mdline 1697: the 2026-10-23 Kafka pace is kept and marked as of when the loop published.Divergences
docs/foundation-smdc-step.md.Session notes
🤖 Generated with Claude Code