Repository navigation
feat(sync): notes quiet hold readable from the environment (default unchanged) - #25321
Merged
Merged
Conversation
…NDS per call Default stays 600 s, so behaviour is unchanged until the value is set. Clamped to 120..600; a malformed value keeps the default. The outbox due time and the budget-denial reschedule follow the same value. Co-Authored-By: Claude Fable 5.2 <[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.
Notes quiet hold: readable from the environment, default unchanged
Split out of #25304 so it can ship on its own. Tracking: SCA-1766.
Notes on uploaded audio wait
QUIET_SECONDS = 600after the last content arrival before full processing.That value was a constant. This makes it
SYNC_PROCESSING_QUIET_SECONDS, read per call, so it can be loweredfor every existing app build by config, with no release.
No behaviour change in this PR. The default is 600. Lowering it is a separate, user-visible config
decision.
Failure-Class: none
What changed
utils/sync/processing_hold.quiet_seconds(): readsSYNC_PROCESSING_QUIET_SECONDS, default 600, clampedto 120..600. A missing or malformed value keeps 600. The floor is the recorded-time gap at which a
conversation splits, so a typo cannot remove the debounce; the ceiling means it can only shorten the wait.
admission, the enrichment outbox due time, and the budget-denial reschedule all use it.Risk when the value is lowered (not in this PR)
Notes may be written before a late upload lands. The existing
MAX_LATE_RUNS = 1bounds that to one extranotes run per conversation; audio is never lost. Watch
late_runs > 0against its baseline.Kill switch and rollback
Unset the variable, or set it to 600.
SYNC_PROCESSING_HOLD_ENABLEDis unchanged.Tests
tests/unit/test_sync_processing_hold.py: per-call read, clamp and malformed values, outbox due time followsthe configured window.
🤖 Generated with Claude Code