From ccb05dbb170475870e755573f91da6e1914698d5 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 16 Nov 2016 11:40:52 +0100 Subject: Adds background job to cleanup all previews. * A repair step that inserts a background job for each user * Each background job will delete for 15 seconds if it takes longer we reschedule. This is done so instances that don't use the system cron won't time out. * Added tests Signed-off-by: Roeland Jago Douma --- lib/private/Repair.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/private/Repair.php') diff --git a/lib/private/Repair.php b/lib/private/Repair.php index 7a5ef9fbd9e..c9f8dbfff69 100644 --- a/lib/private/Repair.php +++ b/lib/private/Repair.php @@ -36,6 +36,7 @@ use OC\Repair\CleanTags; use OC\Repair\Collation; use OC\Repair\DropOldJobs; use OC\Repair\MoveUpdaterStepFile; +use OC\Repair\NC11\CleanPreviews; use OC\Repair\NC11\MoveAvatars; use OC\Repair\OldGroupMembershipShares; use OC\Repair\RemoveGetETagEntries; @@ -155,6 +156,10 @@ class Repair implements IOutput{ \OC::$server->getJobList(), \OC::$server->getSystemConfig() ), + new CleanPreviews( + \OC::$server->getJobList(), + \OC::$server->getUserManager() + ), ]; } -- cgit v1.2.3