nextcloud/apps/files_trashbin/lib
Louis Chemineau 9b5d11845a
feat(files_trashbin): Refactor expire background job to support parallel run
- Follow-up of #51600

The original PR introduced the possibility to continue an `ExpireTrash` job by saving the offset. This was to prevent having to start over the whole user list when the job crashed or was killed.

But on big instances, one process is not enough to go through all the users in a timely manner. Supporting parallel run allows covering more ground faster.

This PR introduced this possibility. We are now storing the offset right away to allow another parallel job to pick up the task at that point. We are arbitrarily cutting the user list in chunk of 10 to not drastically overflow the 30 minutes time limit.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2025-09-08 12:33:25 +02:00
..
AppInfo chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
BackgroundJob feat(files_trashbin): Refactor expire background job to support parallel run 2025-09-08 12:33:25 +02:00
Command fix(files_trashbin): Expire trashbin items when space is needed 2025-07-05 14:12:30 +08:00
Controller refactor(OpenAPI): Adjust scopes to match previous behavior 2025-01-06 14:30:40 +01:00
Events chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Exceptions chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Listener refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
Listeners feat(files_trashbin): Allow preventing trash to be deleted permanently 2025-01-13 15:19:19 +01:00
Migration feat(migrations): add metadata to existing migrations 2024-08-02 18:26:12 -01:00
Sabre fix(trashbin): Fix errors in the log on MOVE operations 2025-08-25 16:36:55 +02:00
Service feat(files_trashbin): Allow preventing trash to be deleted permanently 2025-01-13 15:19:19 +01:00
Trash chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
UserMigration refactor(apps): Use constructor property promotion when possible 2024-10-21 12:37:59 +02:00
Capabilities.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Expiration.php fix(files_trashbin): Expire trashbin items when space is needed 2025-07-05 14:12:30 +08:00
Helper.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Storage.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
Trashbin.php fix: fix trashbin restore events 2025-08-19 20:46:56 +02:00