Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up old pipeline runs in jobs #550

Closed
ricklamers opened this issue Nov 16, 2021 · 0 comments
Closed

Clean up old pipeline runs in jobs #550

ricklamers opened this issue Nov 16, 2021 · 0 comments
Assignees
Labels
improvement An improvement or enhancement to an existing feature.

Comments

@ricklamers
Copy link
Member

ricklamers commented Nov 16, 2021

Is your feature request related to a problem? Please describe.
When running a pipeline as part of a job, the job can create many pipeline runs when e.g. on a short cron schedule (run every 5 minutes). Each run has its own "checkout" of the project files. This can fill the disk pretty rapidly in some cases (large project files, e.g. node_modules/ in some cases).

Describe the solution you'd like
Introduce an option to retain only the last X number of pipeline runs. This automatically frees up space and allows cron jobs to run for longer durations more reliably.

Credits to Serhii Ostapchuk for bringing up the problem & idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement An improvement or enhancement to an existing feature.
Projects
None yet
Development

No branches or pull requests

3 participants