feat(FN-4826): complete Step 1 — declare mutation types
Fusion-Task-Id: FN-4826 Fusion-Task-Lineage: b08a58c8-66ab-43d4-bdf9-69d2b56b7bcc
This commit is contained in:
committed by
gsxdsm
parent
3605c67925
commit
0705f42a38
@@ -135,6 +135,26 @@ export type DatabaseMutationType =
|
||||
| "task:auto-recover-finalize-already-on-main"
|
||||
| "task:auto-recover-branch-misbound"
|
||||
| "task:auto-recover-node-unreachable"
|
||||
/**
|
||||
* Metadata shape for node:handoff:* and node:lease:* events:
|
||||
* ```ts
|
||||
* {
|
||||
* taskId: string;
|
||||
* ownerNodeId: string | null; // task.checkoutNodeId at decision time
|
||||
* ownerNodeHealth: "offline" | "error" | "online" | "unknown";
|
||||
* localNodeId: string;
|
||||
* handoffPolicy: "block" | "reassign-to-local" | "reassign-any-healthy" | undefined;
|
||||
* decisionReason: string; // HandoffDecision.reason (e.g. "handoff_blocked_by_policy")
|
||||
* source: "scheduler.dispatch" | "mesh-lease.recover";
|
||||
* epoch?: number; // for node:lease:recovered: the post-recovery checkoutLeaseEpoch
|
||||
* recoveryReason?: string; // for node:lease:recovered: caller-provided reason + isLeaseRecoverable reason
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
| "node:handoff:parked"
|
||||
| "node:handoff:reassign-local"
|
||||
| "node:handoff:reassign-any"
|
||||
| "node:lease:recovered"
|
||||
| "task:auto-recover-lease-released"
|
||||
| "task:auto-recover-lease-already-healed"
|
||||
| "task:auto-recover-lease-foreign-owner"
|
||||
|
||||
Reference in New Issue
Block a user