Repository navigation
fix(dev2/c0mpute-gateway): startup grace in the watchdog, no restart loop - #289
Merged
Merged
Conversation
…loop Since c0mpute 0.3.136 the worker brings its apps up before it opens :7777; on 2026-11-30 that took 3.5 min. The watchdog restarted any worker whose /healthz failed for 12 s, so from 20:13 to 20:29 UTC it restarted the worker every 2 min and :7777 never came up: every Moshpit name on c0mpute (my.ip, mums.flower, dbml.db, autoinfluencer) answered 502/503. Now a worker that became active less than C0MPUTE_GATEWAY_GRACE (480 s) ago is left to finish starting. Installed on dev2 (backup /usr/local/sbin/c0mpute-gateway-watchdog.bak-20261130-grace). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan0 finding(s) in the 1 file(s) this pull request changes. Nothing in the files this pull request changes. 42 pre-existing finding(s) elsewhere in the repository — **HIGH**: 15 | **MEDIUM**: 13 | **LOW**: 14Not introduced by this pull request.
…and 22 more; the full set is in the SARIF artifact. Snippets are redacted; ThreatCrush never prints matched credential material. |
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.
The c0mpute worker 0.3.136 opens :7777 only after its apps are up (3.5 min on dev2 today). The watchdog restarted it after 12 s of failed /healthz, so from 20:13 to 20:29 UTC it looped every 2 min and every Moshpit name served by c0mpute was down.
This leaves a worker alone for
C0MPUTE_GATEWAY_GRACE(480 s) after it became active. Already installed on dev2 (backup.bak-20261130-grace);bash -nclean; the installed copy matched master before the change. Recovery today: stopped the timer, the worker opened :7777 at 20:29:07 (3 m 37 s after start), timer re-enabled with this version.Open for the c0mpute repo: the gateway listener should not wait for apps to promote.
🤖 Generated with Claude Code