generated from coulomb/repo-seed
fix(state-hub): STATE-WP-0063 T01/T02/T04 — restore local consistency sync
Point custodian-sync systemd units at /home/worsch/state-hub and uv run; add infra/systemd templates and README interim guidance. Document T02 diagnosis (activity-core schedules fire; ops-bridge tunnel gaps cause State Hub connection refused). T04 crontab path fixed locally; T03/T05 remain open.
This commit is contained in:
11
infra/systemd/custodian-sync.service
Normal file
11
infra/systemd/custodian-sync.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[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=/home/worsch/.local/bin/uv run python scripts/consistency_check.py --remote --all
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
11
infra/systemd/custodian-sync.timer
Normal file
11
infra/systemd/custodian-sync.timer
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=State Hub consistency sync — periodic repo sync (every 15 min)
|
||||
Requires=custodian-sync.service
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5min
|
||||
OnUnitActiveSec=15min
|
||||
Unit=custodian-sync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user