Repository navigation
chore(backend): the 120 s notes wait reaches backend-listen and pusher - #26772
Merged
Merged
Conversation
Add SYNC_PROCESSING_QUIET_SECONDS=120 to the prod shared ConfigMap. backend-listen enrolls late-audio conversations with now + quiet_seconds(), so it still scheduled them 600 s out after #26708.
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.
Problem
#26708 set the notes wait to 120 s on the Cloud Run services, and it works there: the median wait after the last audio went from 608 s to about 150 s. But 11.5% of held conversations still wait about 10 minutes.
Prod, 2026-11-30 03:18 to 05:18 UTC, 304 held conversations: 35 were claimed once, 624 to 811 s after their last audio, with summary lane
liveandsync_holdset, while every Cloud Run service already served 120.The enroller computes the outbox due time, not the service that later admits the row.
backend-listeningests already-transcribed late audio (utils.sync.late_audio.ingest_late_transcript) and marks the outbox withsync_hold, sodue_at = now + quiet_seconds()is evaluated there. Prodbackend-listenhas noSYNC_PROCESSING_QUIET_SECONDS, so it uses the 600 s default.Change
Add
SYNC_PROCESSING_QUIET_SECONDS=120to the prod shared ConfigMap (prod-omi-backend-config), whichbackend-listenandpusherload withenvFrom. No code or chart change.Rollout
The ConfigMap is written by the listen Helm deploy and the full backend deploy. Pods read it at start, so the value serves after the next
backend-listenrollout. This PR does not roll listen.Cost
cost-delta-usd-day: 15
This is the listen share of the $110/day ceiling declared and approved in #26708. Measured so far on the Cloud Run services (19 h): full processing runs are not above the same hours the day before.
Verification
backend/scripts/pre-deploy-check.sh: 709 passed.make preflightand the pre-push gate.kubectl -n prod-omi-backend get configmap prod-omi-backend-config -o jsonpath='{.data.SYNC_PROCESSING_QUIET_SECONDS}'returns 120, and outbox rows withsummary_lane=liveandsync_hold=trueare claimed about 120 s after the last content arrival.Rollback
Remove the entry (default 600).
Product invariants affected
🤖 Generated with Claude Code