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

WIP: Remove unreferenced beta/stable atfifacts during gc #5

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

CircuitCoder
Copy link
Collaborator

NOTICE: The changes are NOT tested yet!

  • Moved GC procedure after actually downloading the artifacts.
  • During the downloading, record all referenced file paths
  • During the GC procedure, all files except those meeting the following conditions are deleted:
    • is referenced
    • is a nightly artifact/manifest within the specified date range
  • Hash files are deleted alongside artifacts/manifests.
  • Directories with no kept files are deleted.

@jiegec jiegec merged commit 51150a7 into jiegec:master Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants