Skip to content

chore(backend): move X connector sync to a 12h cadence - #20880

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/x-sync-12h-cadence
Oct 7, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/x-sync-12h-cadence

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

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

  • tests/unit/test_validate_x_connector_sync_scheduler.py — 14 passed (contract fixture pinned to 0 3,15 * * *)
  • 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

Review in cubic Turn on auto-fix

The registry averages ~0.1 new posts per user per day, so 6h sweeps
were ~97% empty: pure API/RapidAPI overhead for no freshness gain.
12h (03:00/15:00 UTC) halves the footprint and leaves 2x headroom
before sweep runtime approaches cadence. The scheduler resource keeps
its name (x-connector-sync-6h) — renaming GCP resources churns IAM for
zero value.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T04:22:59.145983Z 89ebe9d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 5ee4d6e into main Oct 7, 2026
60 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/x-sync-12h-cadence branch October 7, 2026 13:12
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