Skip to content

Commit fea0277

Browse files
retlehsclaude
andcommitted
Disable automatic R2 cleanup in pipeline
Old pre-migration release prefixes contain ~140k files each, making the releases/ listing too slow to run after every deploy. R2 cleanup can be triggered manually via: wpcomposer deploy --cleanup --r2-cleanup Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1940f90 commit fea0277

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

cmd/wpcomposer/cmd/pipeline.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,9 @@ func executePipelineSteps(cmd *cobra.Command, ctx context.Context, skipDiscover,
188188
application.Logger.Info("pipeline: local cleanup done", "removed", removed)
189189
}
190190

191-
if application.Config.R2.Enabled {
192-
if removed, err := deploy.CleanupR2(ctx, application.Config.R2, 24, 5, application.Logger); err != nil {
193-
application.Logger.Warn("pipeline: R2 cleanup failed", "error", err)
194-
} else if removed > 0 {
195-
application.Logger.Info("pipeline: R2 cleanup done", "objects_removed", removed)
196-
}
197-
}
191+
// R2 cleanup disabled — old release prefixes with full file sets make
192+
// listing too slow. Run manually via: wpcomposer deploy --cleanup --r2-cleanup
193+
// TODO: re-enable after old fat release prefixes are purged.
198194
}
199195

200196
return nil

0 commit comments

Comments
 (0)