From 1ad7c550015c52ec85caf61bdd44d684f497b807 Mon Sep 17 00:00:00 2001 From: Brian McMahon Date: Thu, 16 Apr 2026 09:29:18 -0700 Subject: [PATCH] Point CheckTradingDay + HealthCheck SSM commands at alpha-engine-dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Part 2/3 of ae-dashboard de-bloat. Once this deploys, the Step Function invokes trading_calendar.py and health_checker.py from /home/ec2-user/alpha-engine-dashboard instead of /home/ec2-user/ alpha-engine-data. Both scripts were copied to the dashboard repo in cipher813/alpha-engine-dashboard#18 — identical content, same CLI contract (TRADING DAY / MARKET_CLOSED stdout markers, --alert flag). Pre-merge requirements: 1. cipher813/alpha-engine-dashboard#18 must be merged 2. ae-dashboard must have pulled the new dashboard repo files (daily boot-pull.timer or manual pull) No other SF states touched. No CloudFormation or deploy-script changes needed — operator runs the existing infrastructure/deploy_step_function_daily.sh after merge to apply the updated definition. Part 3/3 (file deletion + alpha-engine-data removal from ae-dashboard's boot-pull REPOS list + clone removal) follows after next weekday run verifies the new paths work. Co-Authored-By: Claude Opus 4.6 (1M context) --- infrastructure/step_function_daily.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infrastructure/step_function_daily.json b/infrastructure/step_function_daily.json index ee449cb..724633a 100644 --- a/infrastructure/step_function_daily.json +++ b/infrastructure/step_function_daily.json @@ -12,7 +12,7 @@ "InstanceIds.$": "$.ec2_instance_id", "Parameters": { "commands": [ - "cd /home/ec2-user/alpha-engine-data", + "cd /home/ec2-user/alpha-engine-dashboard", "source .venv/bin/activate", "python trading_calendar.py" ], @@ -336,7 +336,7 @@ "InstanceIds.$": "$.ec2_instance_id", "Parameters": { "commands": [ - "cd /home/ec2-user/alpha-engine-data", + "cd /home/ec2-user/alpha-engine-dashboard", "source .venv/bin/activate", "python health_checker.py --alert 2>&1 | tee /var/log/health-check.log" ],