MCPcopy Create free account
hub / github.com/compozy/agh / stopChild

Method stopChild

internal/daemon/memory_runtime.go:653–660  ·  view source on GitHub ↗
(parentCtx context.Context, id string)

Source from the content-addressed store, hash-verified

651}
652
653func (e *forkedMemoryExtractor) stopChild(parentCtx context.Context, id string) {
654 stopCtx, cancel := context.WithTimeout(context.WithoutCancel(parentCtx), memoryExtractorStopTimeout)
655 defer cancel()
656 if err := e.sessions.StopWithCause(stopCtx, id, session.CauseCompleted, "memory extractor completed"); err != nil &&
657 e.logger != nil {
658 e.logger.Warn("daemon: stop memory extractor child failed", "session_id", id, "error", err)
659 }
660}
661
662func (e *forkedMemoryExtractor) workspaceRoot(sessionID string) string {
663 if e == nil || e.workspaceRoots == nil {

Callers 1

ExtractMethod · 0.95

Calls 1

StopWithCauseMethod · 0.65

Tested by

no test coverage detected