Closed eboileau closed 4 months ago
Had a deeper look at pybedtools:
__del__()
or__exit__()
method to clean up any temporary files.Using pybedtools.helpers.set_tempdir to have per-request tempdirs will most likely not work - at least if we handle any requests asynchronously. So the most reasonable thing is a housekeeping cron job that does something like:
find /tmp -name 'pybedtools.*.tmp' -mtime +0.1 -exec rm -rf {} \;
As discussed:
CompareStepB.vue
, we use FileUpload
with :maxFileSize="50000000"
. The API end point is transfer/tmp_upload
(api/transfer.py). Saving of the file is handled by FileService.upload_default
(services/file.py), and relies on Config.UPLOAD_PATH
(which defaults to /uploads
on the container). CompareView.vue
, next to the submit button (C). You can try it e.g. by clicking the submit button w/o selecting one of the radio buttons. Errors arising from failed uploads (currently due to failed reading of the file, etc.) are also displayed there. See also #90 Mostly happens when a user uses the Compare
view, but also when creating dataset. In general, the simplest solution here is to let pybedtools do it's job, and we just add a "clean up" on top e.g. delete files that have not been accessed for more than 1 day.
For general info, see
Latest changes to be tested on the server.
Aims/objectives.
We need a general solution, e.g. files associated with a given session/user.
A clear and concise description of todo items.