Skip to content

chore(backend): the 120 s notes wait reaches backend-listen and pusher - #26772

Merged
kodjima33 merged 2 commits into
mainfrom
chore/listen-quiet-120
Nov 30, 2026
Merged

kodjima33 merged 2 commits into
mainfrom
chore/listen-quiet-120

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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 live and sync_hold set, while every Cloud Run service already served 120.

The enroller computes the outbox due time, not the service that later admits the row. backend-listen ingests already-transcribed late audio (utils.sync.late_audio.ingest_late_transcript) and marks the outbox with sync_hold, so due_at = now + quiet_seconds() is evaluated there. Prod backend-listen has no SYNC_PROCESSING_QUIET_SECONDS, so it uses the 600 s default.

Change

Add SYNC_PROCESSING_QUIET_SECONDS=120 to the prod shared ConfigMap (prod-omi-backend-config), which backend-listen and pusher load with envFrom. 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-listen rollout. 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 preflight and the pre-push gate.
  • After the next listen rollout: kubectl -n prod-omi-backend get configmap prod-omi-backend-config -o jsonpath='{.data.SYNC_PROCESSING_QUIET_SECONDS}' returns 120, and outbox rows with summary_lane=live and sync_hold=true are claimed about 120 s after the last content arrival.

Rollback

Remove the entry (default 600).

Product invariants affected

  • INV-MEM-4: named because the prod runtime env overlay is under its path glob. Unchanged: this adds one notes-timing value and touches no memory intake, consolidation or promotion setting.

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

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.
@kodjima33
kodjima33 merged commit 269ce95 into main Nov 30, 2026
72 checks passed
@kodjima33
kodjima33 deleted the chore/listen-quiet-120 branch November 30, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant