#963 add ability to garbage collect composes
Closed: Invalid 5 years ago Opened 5 years ago by dustymabe.

In our release scripts we run commands to clean up old directories.

It would be nice if pungi had a config option for garbage collection and could take care of this for us rather than relying on every script to do it individually and not mess it up. i.e. would be nice if it took one code path.


There is already a similar request in compose-utils#39. That would basically replace the find with some more sophisticated thing.

I'm not sure this should be part of Pungi itself, it seems to me like the scope is not really overlapping.

Thanks for the info. I do believe that including a config value inside the pungi config file garbage_collect=14 or keep_old_composes=14 or something like that and having pungi itself do the cleanup would be valuable IMHO. It basically means we don't have to manage the pruning somewhere else.

You're the expert. Let me know what you think.

I'm not a fan of that design: you run pungi to create a compose, and suddenly it goes and tries to delete other other unrelated things.

Metadata Update from @lsedlar:
- Issue close_status updated to: Invalid
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata