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

Method failStart

packages/runtime/src/runtime-kernel.ts:3614–3637  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

3612 }
3613
3614 async failStart(error: unknown): Promise<never> {
3615 this.settleReservedExecution({ ok: false, error });
3616 let failure = error;
3617 if (this.interactionRun) {
3618 try {
3619 await this.interactionRun.close(interactionClosureReason(this.run));
3620 await this.interactionRun.settleLocalClosures();
3621 this.callbacks.releaseInteraction(this.interactionRun);
3622 } catch (closeError) {
3623 failure = new AggregateError(
3624 [failure, closeError],
3625 'Interaction owner bind cleanup failed',
3626 );
3627 }
3628 }
3629 try {
3630 this.releaseMessage();
3631 } catch (releaseError) {
3632 failure = new AggregateError([failure, releaseError], 'Message owner bind cleanup failed');
3633 }
3634 await this.run.recordFailure(failure);
3635 await this.callbacks.finalizeExecution(() => this.run.finalize());
3636 throw failure;
3637 }
3638
3639 async abandonUnstartedContinuation(error: unknown): Promise<never> {
3640 this.settleReservedExecution({ ok: false, error });

Callers 1

Calls 9

releaseMessageMethod · 0.95
interactionClosureReasonFunction · 0.85
settleLocalClosuresMethod · 0.80
releaseInteractionMethod · 0.80
recordFailureMethod · 0.80
finalizeExecutionMethod · 0.80
closeMethod · 0.65
finalizeMethod · 0.45

Tested by

no test coverage detected