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

Utilise Object Lifecycle Management when deleting resources in GCS #396

Open
TobyPinfold opened this issue Nov 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@TobyPinfold
Copy link
Contributor

Is your feature request related to a problem? Please describe.

When deleting a pipeline the provider workflow is using the GCS client to iterate over each file within the bucket and trigger a delete operation on them. This leads to issues when a pipeline is long lived with many compilations as it the number of files to be deleted takes enough time for the workflow to timeout, leaving a state whereby some files are deleted and some are still existing, requiring manual intervention.

Describe the solution you'd like

Instead of iterating over a gcs bucket contents we should follow the suggestions made by google to delete all bucket contents asynchronously by setting the Object Lifecycle Management Age of the bucket to 0 days.

Additional context
Mainly impacts the use of a VAI provider

@TobyPinfold TobyPinfold added the enhancement New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant