salilab / IHMValidation

Validation software for integrative models deposited to PDB
MIT License
2 stars 2 forks source link

Firefox leaves data in `/tmp` after the run #80

Closed aozalevsky closed 3 months ago

aozalevsky commented 3 months ago

Unless fully and explicitly terminated selenium (geckodriver + firefox) https://github.com/mozilla/geckodriver/issues/299 leaves temporary data in /tmp that might accumulate fast during the rebuild of multiple reports in one campaign.

drwx------.  2 arthur sali     40 Mar 26 10:52 Temp-9eb406e1-d55f-4103-b20b-32f09daeaaba
drwx------. 14 arthur sali    880 Mar 26 10:52 rust_mozprofileV0sHMr
arthur@flute:/tmp$ du -sh rust_mozprofileV0sHMr
28M rust_mozprofileV0sHMr
aozalevsky commented 3 months ago

As an additional precaution, running temporary cleanups is a good idea.

Here is an example that checks and delete stale files older than 1hr

find /tmp -cmin +60 -type d -maxdepth 1 -regex ".*rust_.*\|.*Temp-.*" -exec rm -r {} \;