Cleanup for storage-users uploads
- Dominant language
- Go
- Stars
- 2.1k
- Forks
- 274
- Avg merge
- 2d 1h
- Merged PRs (30d)
- 103
Description
## Is your feature request related to a problem? Please describe.
Our users are uploading big files and sometimes their uploads will fail due to bad internet connection / closing of the notebook. This will save the files in the folder `/storage/users/uploads`. We had a full disk last weekend because one user uploaded some big videos and the upload got interrupted. We are using external storage for spaces (S3). Due to the usage of this storage engine, we did not equip the VM with much hardware like huge disks. Because multiple uploads got interrupted, out disk went to 100% and we couldn't do anything. Not even running the `clean command` in the container because the disk was full. After watching our monitoring graphs, we've seen a steady linear increase over the last two months. This could have been prevented if we had some kind of mechanism to automatically clean non-processing and expired uploads.
[See for more information on that topic](https://github.com/owncloud/ocis/issues/6687#issuecomment-2281972043)
## Describe the solution you'd like
One maintainer gave a example of a fix for this. A fix would be a go routine, like used for other things, to periodically run the clear command for non-processing and expired files. Being able to configure the job would be the cherry on top.
## Describe alternatives you've considered
One alternative would be to run a cronjob on the actual system to exec into the container and run the command.
## Additional context
[See for more information on that topic](https://github.com/owncloud/ocis/issues/6687#issuecomment-2281972043)
Contributor guide
Assessment
This issue has not been assessed yet.