quant-web/scripts/harvester-entrypoint.sh
epistemophiliac b5db15d6ab Initial QuantTrade stack for Coolify deployment.
Streamlit + VectorBT dashboard, Parquet harvester with nightly cron, Authentik header auth, SQLite strategy persistence, and Bugsink telemetry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-19 00:46:51 -04:00

16 lines
404 B
Bash

#!/bin/bash
set -euo pipefail
echo "Quant harvester starting (TZ=${TZ:-UTC})"
if [ ! -f "/data/parquet/.seed_complete" ]; then
echo "Running initial historical seed..."
python /app/sync.py --seed
touch /data/parquet/.seed_complete
echo "Seed complete."
else
echo "Seed marker found; skipping full history download."
fi
echo "Launching cron (weekdays 17:00 America/New_York)..."
exec cron -f