-
Notifications
You must be signed in to change notification settings - Fork 1
feat(server): default sync interval to 5m and document evented refresh#1320
Merged
jonnii merged 1 commit intoJun 24, 2026
Merged
Conversation
The sync loop was opt-in: STACKIT_SYNC_INTERVAL unset meant 0, which disabled it entirely, so a server with no explicit interval never pulled remote changes. With webhooks now able to drive immediate refreshes, the interval becomes the backstop — so it should exist by default. - envSyncInterval defaults to 5m when STACKIT_SYNC_INTERVAL is unset; "0" still explicitly disables, and an unparseable value falls back to the default rather than silently disabling the loop. - docs/deploy.md: explain the three refresh triggers (interval, webhook, manual), document webhook setup (payload URL, secret, push event), the manual-sync endpoint, and how local servers stay current without webhooks (fsnotify watcher + manual sync). Calls out that GitHub sends no push event for refs/stackit/metadata/*, so the interval loop must stay on as a backstop.
This was referenced Jun 23, 2026
Merged
Base automatically changed from
jonnii/20260623030002/add-manual-sync-endpoint-for-on-demand-refresh
to
main
June 24, 2026 02:00
@jonnii
jonnii
deleted the
jonnii/20260623030405/default-sync-interval-to-5m-and-document-evented
branch
June 24, 2026 02:00
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.
Uh oh!
There was an error while loading. Please reload this page.
The sync loop was opt-in: STACKIT_SYNC_INTERVAL unset meant 0, which disabled it
entirely, so a server with no explicit interval never pulled remote changes. With
webhooks now able to drive immediate refreshes, the interval becomes the
backstop — so it should exist by default.
explicitly disables, and an unparseable value falls back to the default rather
than silently disabling the loop.
document webhook setup (payload URL, secret, push event), the manual-sync
endpoint, and how local servers stay current without webhooks (fsnotify
watcher + manual sync). Calls out that GitHub sends no push event for
refs/stackit/metadata/*, so the interval loop must stay on as a backstop.
Stack
Auto-generated by Stackit
Merged via consolidation into #1326 by jonnii