ferrero-opentext/Python-Version/RUN_ORCHESTRATOR.md

1.4 KiB

Running the Orchestrator

Quick Start - Watch in Real Time

To run the orchestrator and watch it in real-time (daemon mode):

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

python3 scripts/orchestrator.py --force

Runs all tasks right now, ignoring their schedules.

Single Check (Cron Mode)

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:

python3 scripts/orchestrator.py --daemon

NOT:

git pull