prune: Stream expired files from the database

(as opposed to collecting them all first)
This commit is contained in:
Emi Simpson 2022-11-28 16:49:09 -05:00
parent 60db7938c8
commit 11cfd07d71
No known key found for this signature in database
GPG key ID: 45E9C6E81BD86E7C

View file

@ -461,7 +461,7 @@ def prune():
File.expiration.is_not(None), File.expiration.is_not(None),
File.expiration < current_time File.expiration < current_time
) )
).all() )
files_removed = 0; files_removed = 0;