# Running the Orchestrator ## Quick Start - Watch in Real Time To run the orchestrator and watch it in real-time (daemon mode): ```bash cd /Users/daveporter/Desktop/CODING-2024/Ferrero-Opentext/Python-Version python3 scripts/orchestrator.py --daemon ``` This will: - Run continuously in the foreground - Check every minute for tasks that need to run - Show all output in your terminal - Press `Ctrl+C` to stop --- ## Other Run Modes ### Force Run All Tasks Immediately ```bash python3 scripts/orchestrator.py --force ``` Runs all tasks right now, ignoring their schedules. ### Single Check (Cron Mode) ```bash python3 scripts/orchestrator.py ``` Checks once, runs any due tasks, then exits. This is what cron would call. --- ## Current Task Schedule - **A1→A2 Box Uploader**: Every 5 minutes (processes 2 campaigns) - **A2→A3 Upload Polling**: Every 5 minutes (processes ALL files) - **A4 Box Uploader**: Every 10 minutes - **A4 Webhook Monitor**: Every 5 minutes - **A5→A6 Download**: Every 5 minutes - **B1→B2 Download**: Every 10 minutes - **Daily Report**: Once per day at 7 PM --- ## Logs - **Orchestrator logs**: `logs/orchestrator.log` - **Individual script logs**: `logs/a1_to_a2_box.log`, `logs/a2_to_a3.log`, etc. --- ## Troubleshooting If you see git output instead of orchestrator output, make sure you're running: ```bash python3 scripts/orchestrator.py --daemon ``` NOT: ```bash git pull ```