()
| 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; |
no test coverage detected