Skip to content

Commit 66f6732

Browse files
authored
Ensure cache server shuts down (#998)
To clean up socket file on disk
1 parent ef80ae3 commit 66f6732

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/agent/executor/executor.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ func (executor *Executor) RunBuild(ctx context.Context) {
226226
slog.Error(message)
227227
executor.reportError(message)
228228
} else {
229+
// so the socket file is removed
230+
defer cacheServer.Shutdown(ctx)
229231
executor.env.Set("CIRRUS_HTTP_CACHE_HOST", cacheServer.Addr)
230232
}
231233
}

0 commit comments

Comments
 (0)