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

Method unregisterChildRun

packages/runtime/src/runtime-kernel.ts:3080–3091  ·  view source on GitHub ↗
(active: AgentRunActiveSession, run: AgentRun)

Source from the content-addressed store, hash-verified

3078 }
3079
3080 private async unregisterChildRun(active: AgentRunActiveSession, run: AgentRun): Promise<void> {
3081 this.unregisterRun(active, run);
3082 if (active.activeRuns.size > 0) return;
3083 await this.settleRunStopOperation(active.sessionId, run);
3084 const generation = active as BackendGeneration;
3085 await this.settleBackendGenerationAfterRunExit(generation);
3086 if (generation.phase === 'active') {
3087 await this.quarantineBackendGeneration(generation);
3088 }
3089 await this.settleBackendGenerationAfterRunExit(generation);
3090 await this.flushBackendInvalidation(active.sessionId);
3091 }
3092
3093 private async settleRunStopOperation(sessionId: string, run: AgentRun): Promise<void> {
3094 const operation = this.stopOperations.get(sessionId);

Callers 2

startChildTurnClaimedMethod · 0.95

Tested by

no test coverage detected