spec: add harden-hourly-sync-lifecycle change (WealthLedger/backend#56)
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
sequenceDiagram
|
||||
participant Coordinator
|
||||
participant DB as Durable attempt status
|
||||
participant Steps as Child step owners
|
||||
|
||||
Note over Coordinator,DB: Attempt is still running but its walk no longer executes
|
||||
Coordinator->>DB: Detect running attempt without active walk
|
||||
alt Process still alive after lost settle
|
||||
Coordinator->>DB: Read actual step results
|
||||
Coordinator->>DB: Close attempt as partial or failed with cause INTERRUPTED
|
||||
else Process restarted after stop
|
||||
Coordinator->>DB: Read actual step results
|
||||
Coordinator->>DB: Close abandoned attempt as partial or failed with cause INTERRUPTED
|
||||
end
|
||||
DB-->>Coordinator: Attempt is terminal, no overlap possible
|
||||
Coordinator->>DB: Reserve next attempt at next hourly term from attempt start
|
||||
alt Next term reached
|
||||
DB-->>Coordinator: Successor attempt starts
|
||||
Steps->>DB: Late publication from previous attempt
|
||||
DB-->>Steps: Publication rejected as stale relative to successor
|
||||
else Next term not reached
|
||||
DB-->>Coordinator: No work (not-due)
|
||||
end
|
||||
Reference in New Issue
Block a user