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

Cleanup stale File objects during the garbage collection job #3533

Closed
rtibbles opened this issue Aug 15, 2022 · 1 comment · Fixed by #3584
Closed

Cleanup stale File objects during the garbage collection job #3533

rtibbles opened this issue Aug 15, 2022 · 1 comment · Fixed by #3584
Assignees

Comments

@rtibbles
Copy link
Member

Whenever the file upload URL endpoint is accessed, it creates an entry in the File table for that file. As this generally happens prior to the creation of a ContentNode or AssessmentItem associated with this file, if no ContentNode or AssessmentItem are created, then this can leave a File object that is not attached to any specific object.

This has been exacerbated by the recent usage of the same endpoint by ricecooker to avoid doing file uploads via the Studio app server.

To resolve this, we should add cleanup of File objects to the garbage collection utilities.

Acceptance criteria:

@bjester
Copy link
Member

bjester commented Aug 16, 2022

@LianaHarris360 Would you like to pair program on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants