[Unit]
Description=Padelnomics Supervisor — Pipeline Orchestration
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=padelnomics_service
WorkingDirectory=/opt/padelnomics
ExecStart=/bin/sh -c 'exec uv run python src/padelnomics/supervisor.py'
Restart=always
RestartSec=10
EnvironmentFile=/opt/padelnomics/.env
Environment=PATH=/home/padelnomics_service/.local/bin:/usr/local/bin:/usr/bin:/bin
Environment=LANDING_DIR=/data/padelnomics/landing
Environment=DUCKDB_PATH=/data/padelnomics/lakehouse.duckdb
Environment=SERVING_DUCKDB_PATH=/data/padelnomics/analytics.duckdb

LimitNOFILE=65536

StandardOutput=journal
StandardError=journal
SyslogIdentifier=padelnomics-supervisor

[Install]
WantedBy=multi-user.target
