Open davidawad opened 9 years ago
celery can delete files after a given period of time.
http://blog.miguelgrinberg.com/post/using-celery-with-flask
remove files after x number of minutes in the background
something like
@app.task def remove_permanent( spacenum, seconds=(10*60) ) time.sleep(seconds) # do work
celery can delete files after a given period of time.
http://blog.miguelgrinberg.com/post/using-celery-with-flask