MCPcopy Create free account
hub / github.com/apache/maka / finalizeFailedRunStart

Method finalizeFailedRunStart

packages/runtime/src/runtime-kernel.ts:1869–1881  ·  view source on GitHub ↗
(
    owners: RuntimeRunOwnerScope,
    run: AgentRun,
    execution: PendingExecutionClaim,
    error: unknown,
  )

Source from the content-addressed store, hash-verified

1867 }
1868
1869 private async finalizeFailedRunStart(
1870 owners: RuntimeRunOwnerScope,
1871 run: AgentRun,
1872 execution: PendingExecutionClaim,
1873 error: unknown,
1874 ): Promise<void> {
1875 try {
1876 await owners.failStart(error);
1877 } catch (failure) {
1878 if (run.isStopped() && isExecutionCancellation(failure, execution.cancellation)) return;
1879 throw failure;
1880 }
1881 }
1882
1883 private createRunOwnerScope(
1884 run: AgentRun,

Callers 3

compactSessionClaimedMethod · 0.95
runAgentTurnMethod · 0.95
runAgentContinuationMethod · 0.95

Calls 3

isExecutionCancellationFunction · 0.85
failStartMethod · 0.80
isStoppedMethod · 0.80

Tested by

no test coverage detected