Saltie icon indicating copy to clipboard operation
Saltie copied to clipboard

upload files in separate thread, delete after upload

Open dtracers opened this issue 8 years ago • 2 comments

We currently write file data and upload in the same thread as the one the bot logic is running in.

I think we can write the file data in the same thread but uploading the file data needs to happen in a separate thread.


Files that upload successfully should be deleted from the local disk.

dtracers avatar Jan 29 '18 20:01 dtracers

Due to GIL (global interpreter lock), there is a good chance the file upload will need to be a separate process/script.

Sciguymjm avatar Feb 06 '18 04:02 Sciguymjm

spawning a process to handle this should be fairly easy. Maybe we make the server converter internally maintain its own process?

dtracers avatar Feb 06 '18 04:02 dtracers