Skip to content

fix(deploy): point prod x-connector-sync-job at the prod Redis - #20852

Merged
Git-on-my-level merged 3 commits into
mainfrom
fix/x-sync-prod-redis
Oct 6, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
fix/x-sync-prod-redis

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

  • The prod overlay for x-connector-sync-job copied the dev Redis host/port (redis-10797…:10797). Prod jobs use the redis-13151…:13151 cluster (same as notifications-job), so the first prod execution failed every Redis-touching user sync with invalid username-password pair (190 of 250 users).
  • Point the prod overlay at the prod cluster. The REDIS_DB_PASSWORD secret already holds the prod password. Live prod job env patched in parallel.

Follow-up to #20845.

Failure class

Failure-Class: none

Product invariants affected

  • INV-MEM-4 — deployment binding only: corrects which Redis cluster the job binds; no ownership or routing change.

Test plan

  • python3 backend/deploy/compose_runtime_env.py
  • tests/unit/test_render_backend_runtime_env.py — 49 passed
  • Live prod job env patched; verification execution running

Review in cubic Turn on auto-fix

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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level

Copy link
Copy Markdown
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.
@Git-on-my-level
Git-on-my-level merged commit 55ceee1 into main Oct 6, 2026
54 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/x-sync-prod-redis branch October 6, 2026 23:00
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. -->
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