Repository navigation
fix(deploy): point prod x-connector-sync-job at the prod Redis - #20852
Merged
Merged
Conversation
The prod overlay copied the dev Redis host/port. Prod jobs use the 13151 cluster (as notifications-job does), so every per-user sync failed with Redis 'invalid username-password pair' on the first prod execution. Live job patched alongside.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Member
Author
|
Also added MEMORY_ENABLED=on to the prod job env: the canonical intake fence 503s every extraction ('Memory writes are globally paused') without it. Live job patched in parallel; verification execution re-running. |
The canonical intake fence reads MEMORY_ENABLED and fails every extraction write with 'Memory writes are globally paused' when it is unset. Live prod job patched in parallel.
2 of 3 tasks
Git-on-my-level
added a commit
that referenced
this pull request
Oct 7, 2026
## Summary - Move the X connector sync cadence from every 6h to every 12h (`0 3,15 * * *`). - The registry averages ~0.1 new posts per user per day (251 users → ~25-30 posts/day), so 6h sweeps were ~97% empty. 12h halves X API + RapidAPI footprint with no meaningful freshness loss for memory context. - Scheduler resource keeps its name `x-connector-sync-6h` (renaming churns IAM for zero value); only the schedule contract changes. - Runbook updated to match. Follow-up to #11183/#20852. Operator step after merge: two `gcloud scheduler jobs update` calls (dev + prod) — the deploy workflow only validates, never mutates, the schedule. ## Failure class Failure-Class: none ## Product invariants affected - INV-MEM-4 — scheduling cadence only; no ownership, routing, or data-plane change. ## Test plan - [x] `tests/unit/test_validate_x_connector_sync_scheduler.py` — 14 passed (contract fixture pinned to `0 3,15 * * *`) - [x] `black --check` on touched files - [ ] Post-merge: `gcloud scheduler jobs update http x-connector-sync-6h --location=us-central1 --schedule="0 3,15 * * *"` in both projects, then one deploy dispatch per env so the validator passes against the new schedule <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/20880?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/20880?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F20880&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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.
Summary
redis-10797…:10797). Prod jobs use theredis-13151…:13151cluster (same as notifications-job), so the first prod execution failed every Redis-touching user sync withinvalid username-password pair(190 of 250 users).REDIS_DB_PASSWORDsecret already holds the prod password. Live prod job env patched in parallel.Follow-up to #20845.
Failure class
Failure-Class: none
Product invariants affected
Test plan
python3 backend/deploy/compose_runtime_env.pytests/unit/test_render_backend_runtime_env.py— 49 passed