diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go index e590818..e5ea8e2 100644 --- a/internal/app/run/runner.go +++ b/internal/app/run/runner.go @@ -42,7 +42,6 @@ type Runner struct { runningTasks sync.Map } - // getJobCacheDir returns a job-isolated cache directory func (r *Runner) getJobCacheDir(taskID int64) string { return filepath.Join(r.cfg.Host.WorkdirParent, "jobs", fmt.Sprintf("%d", taskID)) @@ -65,7 +64,7 @@ func (r *Runner) CleanStaleJobCaches(maxAge time.Duration) { if err != nil { return // directory may not exist yet } - + cutoff := time.Now().Add(-maxAge) for _, entry := range entries { if !entry.IsDir() {