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

GC task caches belonging to archived pipelines #7272

Merged
merged 1 commit into from Jul 14, 2021

Conversation

aoldershaw
Copy link
Contributor

Changes proposed by this PR

  • Add a GC component that removes any task caches that belong to archived pipelines

Signed-off-by: Aidan Oldershaw <aoldershaw@pivotal.io>
@aoldershaw aoldershaw added the bug label Jul 12, 2021
@aoldershaw aoldershaw requested a review from a team as a code owner July 12, 2021 13:53
@scottietremendous scottietremendous added this to the v7.4.0 milestone Jul 13, 2021
Copy link
Member

@taylorsilva taylorsilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -130,25 +130,3 @@ func (f *resourceCacheLifecycle) CleanUpInvalidCaches(logger lager.Logger) error

return nil
}

func (f *resourceCacheLifecycle) CleanUsesForPausedPipelineResources() error {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was like what, why delete?
ag CleanUsesForPausedPipelineResources
0 hits
ah unused, nice.

For some reason staticcheck didn't flag this func 🤔

@aoldershaw aoldershaw merged commit e3f1817 into master Jul 14, 2021
@aoldershaw aoldershaw deleted the task-cache-archived branch July 14, 2021 14:26
@taylorsilva taylorsilva added the release/undocumented This didn't warrant being documented or put in release notes. label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug release/undocumented This didn't warrant being documented or put in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants