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
1 changed files with 1 additions and 1 deletions

View File

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