#!/bin/bash
# [2026-10-12] 2-year news backfill (network-bound, light), then the news test AFTER the avoid-rules test
cd /var/www/screener/trade/reports/playbook
nice -n 10 python3 news_test.py --backfill 2024-10-01..2026-10-09 > news_backfill.log 2>&1
while [ "$(TZ=America/New_York date +%H%M)" -lt 1805 ] && [ "$(TZ=America/New_York date +%H)" -ge 16 ]; do sleep 60; done
flock /tmp/avoidtest.lock nice -n 10 python3 news_test.py > news_test.log 2>&1
