diff options
Diffstat (limited to 'internal/cli')
| -rw-r--r-- | internal/cli/serve.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/cli/serve.go b/internal/cli/serve.go index 393b6bc..4054a3b 100644 --- a/internal/cli/serve.go +++ b/internal/cli/serve.go @@ -283,6 +283,12 @@ func serve(addr, basePath string) error { } go storyOrch.Run(ctx, scheduler.DefaultStoryPollInterval) + // Sweep stale dispatch workspace directories (internal/executor.Pool's + // RunWorkspaceCleanup) — ContainerRunner preserves a failed execution's + // workspace indefinitely for debugging with no expiry of its own, which + // otherwise accumulates forever. See that function's doc comment. + go pool.RunWorkspaceCleanup(ctx, executor.DefaultWorkspaceCleanupInterval, executor.DefaultWorkspaceCleanupMaxAge) + httpSrv := &http.Server{ Addr: addr, Handler: srv.Handler(), |
