strompreis/scripts/scheduler.sh

8 lines
265 B
Bash

#!/bin/bash
echo "Starte Pipeline Scheduler (Intervall: $INTERVAL Sekunden)"
while true; do
echo "Führe Pipeline aus: $(date)"
/app/.venv/bin/python -m pipeline_api.main run
echo "Pipeline beendet. Warte $INTERVAL Sekunden..."
sleep ${INTERVAL:-3600}
done