[Unit]
Description=Charter V2 Shadow Pre-Entry Evaluator
After=network-online.target charter-v2-webhook.service
Wants=network-online.target

[Service]
Type=simple
User=charter
Group=charter
WorkingDirectory=/opt/charter-live/live_deploy_v2/shadow_preentry
ExecStart=/opt/charter/venv/bin/python -u /opt/charter-live/live_deploy_v2/shadow_preentry/shadow_preentry_worker.py --account 2 --source-db /opt/charter-live/live_deploy_v2/logs/webhook_queue.db --output-db /opt/charter-live/live_deploy_v2/shadow_preentry/shadow_preentry.db --model-bundle /opt/charter-live/live_deploy_v2/shadow_preentry/shadow_preentry_model_bundle.json --poll-seconds 3
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true

[Install]
WantedBy=multi-user.target
