From 77d4d9195f8bbb2a19d56ce0fdad2d751d94dadb Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 18 Feb 2026 14:35:35 +0100 Subject: pkg/aflow: export Context.Close This will be needed to an MCP server. --- pkg/aflow/execute.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/aflow/execute.go') diff --git a/pkg/aflow/execute.go b/pkg/aflow/execute.go index 719001933..9fcfc940b 100644 --- a/pkg/aflow/execute.go +++ b/pkg/aflow/execute.go @@ -39,7 +39,7 @@ func (flow *Flow) Execute(ctx context.Context, model, workdir string, inputs map onEvent: onEvent, } - defer c.close() + defer c.Close() if s := ctx.Value(stubContextKey); s != nil { c.stubContext = *s.(*stubContext) } @@ -292,7 +292,7 @@ func (ctx *Context) TempDir() (string, error) { return dir, nil } -func (ctx *Context) close() { +func (ctx *Context) Close() { for _, dir := range ctx.cachedDirs { ctx.cache.Release(dir) } -- cgit mrf-deployment