[Unit]
Description=State Hub consistency sync — fix-consistency-remote sweep
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/worsch/state-hub
ExecStartPre=/usr/bin/curl -sf http://127.0.0.1:8000/state/health
ExecStart=/usr/bin/curl -sf -X POST http://127.0.0.1:8000/consistency/sweep/remote-all -H "Content-Type: application/json" -d '{"max_seconds":300,"source":"local-timer"}'
StandardOutput=journal
StandardError=journal