chore: update standalone state hub wiring
This commit is contained in:
parent
d444462de0
commit
fdc395a600
23 changed files with 40 additions and 42 deletions
|
|
@ -39,7 +39,7 @@ run them on a schedule.
|
|||
### A. `state-hub-consistency-sweep`
|
||||
|
||||
```yaml
|
||||
# activity-definitions/the-custodian/state-hub-consistency-sweep.yaml
|
||||
# activity-definitions/state-hub-consistency-sweep.yaml
|
||||
id: the-custodian.state-hub-consistency-sweep
|
||||
description: |
|
||||
Sweep all registered repos: pull, reconcile workplan files ↔ DB,
|
||||
|
|
@ -60,7 +60,7 @@ rule:
|
|||
instruction:
|
||||
kind: shell
|
||||
cmd: >-
|
||||
cd /home/worsch/the-custodian/state-hub &&
|
||||
cd /home/worsch/state-hub &&
|
||||
.venv/bin/python scripts/consistency_check.py --remote --all --max-seconds 300
|
||||
on_failure: log_and_continue # warn-only sweeps must not page on transient failures
|
||||
```
|
||||
|
|
@ -75,7 +75,7 @@ Notes:
|
|||
### B. `state-hub-stale-task-cleanup`
|
||||
|
||||
```yaml
|
||||
# activity-definitions/the-custodian/state-hub-stale-task-cleanup.yaml
|
||||
# activity-definitions/state-hub-stale-task-cleanup.yaml
|
||||
id: the-custodian.state-hub-stale-task-cleanup
|
||||
description: |
|
||||
Daily sweep that cancels tasks still 'todo|in_progress|blocked' inside
|
||||
|
|
@ -88,7 +88,7 @@ trigger:
|
|||
instruction:
|
||||
kind: shell
|
||||
cmd: >-
|
||||
cd /home/worsch/the-custodian/state-hub &&
|
||||
cd /home/worsch/state-hub &&
|
||||
.venv/bin/python scripts/cleanup_stale_tasks.py
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue