Skip to content

[codex] prune legacy backup execution schedulers - #288

Merged
Pigbibi merged 1 commit into
mainfrom
codex/fix-runtime-publish-scheduler-20260703
Jul 3, 2026
Merged

[codex] prune legacy backup execution schedulers#288
Pigbibi merged 1 commit into
mainfrom
codex/fix-runtime-publish-scheduler-20260703

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • delete legacy ibkr-*-backup-execution Cloud Scheduler jobs during env sync
  • keep existing main scheduler and monitor dispatcher ownership unchanged

Root cause

Legacy backup execution jobs still call /run at 15:52 ET while primary service schedulers run at 15:45 ET, causing duplicate close-time executions.

Validation

  • bash tests/test_sync_cloud_run_env_workflow.sh
  • actionlint .github/workflows/sync-cloud-run-env.yml
  • git diff --check

Co-Authored-By: Codex <noreply@openai.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 573894ebcd

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1162 to +1165
account_suffix="${cloud_run_service#interactive-brokers-quant-live-}"
account_suffix="${account_suffix%-service}"
if [[ "${account_suffix}" == u* ]]; then
legacy_candidates+=("ibkr-${account_suffix}-backup-execution")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle interactive-brokers-live- backup jobs*

When the sync plan contains the current per-account live service names already used in this repo, such as interactive-brokers-live-u1599-tqqq-service in tests/test_cloud_run_runtime_guard.py, this substitution does not strip the prefix, leaving account_suffix as interactive-brokers-live-u1599-tqqq; the u* guard is then false and the intended ibkr-u1599-tqqq-backup-execution candidate is never deleted. In those live-u* environments the legacy /run scheduler remains and can continue the duplicate close-time execution this change is meant to remove, so the derivation needs to cover the interactive-brokers-live- naming scheme as well.

Useful? React with 👍 / 👎.

@Pigbibi
Pigbibi merged commit 0d91eaf into main Jul 3, 2026
4 checks passed
@Pigbibi
Pigbibi deleted the codex/fix-runtime-publish-scheduler-20260703 branch July 3, 2026 04:44
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