From e4b4bc48b4564f18fb763e4324b24756630f6f3c Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Wed, 29 Jul 2026 12:54:52 +0800 Subject: [PATCH] fix: remove legacy Schwab precheck scheduler Co-Authored-By: Codex --- scripts/reconcile_cloud_runtime.py | 1 + tests/test_reconcile_cloud_runtime.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/scripts/reconcile_cloud_runtime.py b/scripts/reconcile_cloud_runtime.py index a8b4b14..16d0fbc 100644 --- a/scripts/reconcile_cloud_runtime.py +++ b/scripts/reconcile_cloud_runtime.py @@ -388,6 +388,7 @@ def _legacy_scheduler_jobs(service: str) -> list[str]: f"{base_service}-precheck-scheduler", ] ) + candidates.append("schwab-pre-market-dry-run") candidates.append("schwab-monitor-dispatcher-scheduler") return list(dict.fromkeys(candidates)) diff --git a/tests/test_reconcile_cloud_runtime.py b/tests/test_reconcile_cloud_runtime.py index 56c435c..6d3a6a1 100644 --- a/tests/test_reconcile_cloud_runtime.py +++ b/tests/test_reconcile_cloud_runtime.py @@ -260,6 +260,7 @@ def test_cleanup_schedulers_deletes_only_whitelisted_legacy_jobs(self) -> None: "charles-schwab-service-precheck-scheduler", "charles-schwab-probe-scheduler", "charles-schwab-precheck-scheduler", + "schwab-pre-market-dry-run", "schwab-monitor-dispatcher-scheduler", } marked_jobs = { @@ -298,6 +299,7 @@ def fake_run(command, text, capture_output, check): [ "charles-schwab-probe-scheduler", "charles-schwab-precheck-scheduler", + "schwab-pre-market-dry-run", "schwab-monitor-dispatcher-scheduler", ], )