Skip to content

Update collectgarbage management command#696

Draft
otargowski wants to merge 1 commit into
sio2project:masterfrom
otargowski:collectgarbage
Draft

Update collectgarbage management command#696
otargowski wants to merge 1 commit into
sio2project:masterfrom
otargowski:collectgarbage

Conversation

@otargowski

Copy link
Copy Markdown
Contributor

Django doesn't delete files referenced by models upon their deletion (as file storage doesn't support transactions and files could perhaps be referenced by many instances(?)).

The collectgarbage command is the remedy for this - it compares the list of files in the DB with those in filetracker and deletes those missing in the DB with a few exceptions (sandboxes).

It should probably be ran with the -v 3 --pretend flag first for sanity checks.

This needs sio2project/filetracker#92 for listing filetracker files.

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant