Type Alias: ClaimRunResult
ts
type ClaimRunResult =
| {
ok: true;
resumed: boolean;
runId: string;
}
| {
existingRunId?: string;
ok: false;
reason:
| "not_executable"
| "digest_mismatch"
| "run_already_claimed"
| "run_not_found"
| "run_already_settled";
};Defined in: src/batteries/orchestration/store.ts:232
The outcome of a claimRun call. On success it carries the run id and whether this call resumed an existing run; on failure it names whether the plan was not executable, its digest had moved, a run was already claimed, the named run did not exist, or the named run was already settled — carrying the existing run id where one exists.