MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / cleanupArtifacts

Function cleanupArtifacts

src/daemon.ts:327–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 log('info', '[Daemon] Shutting down...');
326
327 const cleanupArtifacts = (): ReturnType<typeof cleanupOwnedWorkspaceFilesystemArtifacts> =>
328 cleanupOwnedWorkspaceFilesystemArtifacts({
329 workspaceKey,
330 trigger: 'shutdown',
331 daemonCleanup: {
332 pid: process.pid,
333 socketPath,
334 instanceId: daemonInstanceId,
335 allowLiveOwner: true,
336 },
337 });
338
339 let cleanupStarted = false;
340 let forcedShutdownTimer: NodeJS.Timeout | null = null;

Callers 1

finishShutdownFunction · 0.85

Tested by

no test coverage detected