tube/.sandstorm
Jacob Weisz 0f4ee60246 Sandstorm: Clean up uploads (#73)
So one issue I've found is that sometimes Sandstorm will kill a grain while it is still transcoding (on my todo list, figure out how to lock the grain open during transcoding...). When that happens, a tube-transcode- and tube-upload- file each get left behind in the uploads directory. If I understand this correctly, tube should never look for those files again, and they are just storage waste. In the case of a grain I made today, the uploads directory remains half the grain's size, even though the actual videos tube serves are elsewhere.

So I believe that I wrote this correctly, but haven't tested it yet: When launching the Sandstorm grain, we should just dump the contents of the uploads directory to clean up unusable data.

Reviewed-on: https://git.mills.io/prologic/tube/pulls/73
Reviewed-by: James Mills <james@mills.io>
Co-authored-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
Co-committed-by: Jacob Weisz <ocdtrekkie@noreply@mills.io>
2024-03-16 05:44:51 +00:00
..
.gitattributes Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
.gitignore Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
build.sh Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
config.json Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
DESCRIPTION.md Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
global-setup.sh Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
launcher.sh Sandstorm: Clean up uploads (#73) 2024-03-16 05:44:51 +00:00
pgp-keyring Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
pgp-signature Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
sandstorm-files.list Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
sandstorm-pkgdef.capnp Remove external FontAwesome dependency (#30) 2022-10-01 05:21:40 +00:00
setup.sh Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
stack Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00
Vagrantfile Add Sandstorm packaging files (#26) 2022-09-24 05:29:27 +00:00