Repository navigation
feat(update): SIGUSR2 asks for an update check now - #60
Open
MorningLightMountain713 wants to merge 1 commit into
Open
MorningLightMountain713 wants to merge 1 commit into
MorningLightMountain713 wants to merge 1 commit into
Conversation
… pass pm2 sendSignal SIGUSR2 watchdog runs auto_update within a minute, in the same loop as the scheduled checks, so the two never overlap. The 1 to 4 hour schedule goes on as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
ACK. Reviewed the diff and checked out the branch: the flag-only SIGUSR2 handler plus the job loop pass keeps checks serialized and leaves the schedule untouched. CI green. Non-blocking: nodes on Arcane run the watchdog under systemd, so the README could also mention |
Cabecinha84
approved these changes
Nov 27, 2026
Cabecinha84
left a comment
Member
There was a problem hiding this comment.
Approved. See the ACK comment above.
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.
An operator, or a test, can ask the watchdog for an update check now instead of waiting for its 1 to 4 hour schedule:
The signal only sets a flag. The job loop, which already runs every minute, runs
auto_update()at its next pass when the flag is set or the schedule comes round, and clears the flag. So an asked-for check is the same check, in the same loop, and can never run at the same time as a scheduled one. The schedule's own count is unchanged.update_request.js: the request and the "is an update due this pass" rule.test/update_request.test.js: an asked-for check runs once at the next pass; two asks give one check; the schedule still runs when it comes round. With the rule changed to ignore the request, two of the three fail.npm test72 passed;npm run lintandnpm run format:checkclean.Run on a legacy node under pm2 (2026-11-23): the watchdog at this branch, its flux source pointed at a lab apt repository, each case started from one snapshot of the node on flux 9.1.0 and fluxbench 6.3.1. Each check was asked for with
pm2 sendSignal SIGUSR2 watchdog; the watchdog loggedUpdate check asked for (SIGUSR2)…, then ran its check at the next pass of the job loop.Depends: fluxbenchapt-get install flux, one transaction: flux 9.1.0 → 9.2.0Depends: fluxbench (>= 6.5.0), fluxbench 6.3.1Flux daemon … is not installed: apt cannot meet its dependencies: flux : Depends: fluxbench (>= 6.5.0) but 6.3.1 is to be installed; no transactionapt-get install flux fluxbench, one transaction: both upgradedflux 9.2.0 is fluxd at
520784219packaged as its release workflow packages it (deb_filecontrol); fluxbench 6.5.0 isb4d0ba2d7.🤖 Generated with Claude Code