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

Disk storage clean up #1887

Open
ntarocco opened this issue Jan 17, 2022 · 0 comments
Open

Disk storage clean up #1887

ntarocco opened this issue Jan 17, 2022 · 0 comments

Comments

@ntarocco
Copy link
Contributor

ntarocco commented Jan 17, 2022

While it is essential to keep safe the uploaded video file and any version of it, we can safely delete generated artifacts that are not used anymore. This will decrease the disk usage.

Create a recurrent task that runs every day/week and will:

  1. get all buckets (record and deposits)
  2. get all ObjectVersions that are not latest and are not master file (basically frames and subformats)
  3. remove the link to the file_id object

The task #1888 should do the rest to remove files from disk.

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

No branches or pull requests

1 participant