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

Method hasActiveRun

packages/runtime/src/runtime-kernel.ts:2498–2503  ·  view source on GitHub ↗
(sessionId: string, runId: string, turnId?: string)

Source from the content-addressed store, hash-verified

2496 }
2497
2498 hasActiveRun(sessionId: string, runId: string, turnId?: string): boolean {
2499 return this.backendGenerationsFor(sessionId).some((active) => {
2500 const run = active.activeRuns.get(runId);
2501 return run !== undefined && (turnId === undefined || run.turnId === turnId);
2502 });
2503 }
2504
2505 updateCachedHeader(sessionId: string, header: SessionHeader): void {
2506 const active = this.active.get(sessionId);

Callers

nothing calls this directly

Calls 2

backendGenerationsForMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected