From 5eb01b01a9ec524c24d7c3ac027615eacd463686 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 30 Sep 2016 13:30:16 +0200 Subject: [PATCH] [master] Tear down FS between cron jobs (#26223) Because some cron jobs do not always properly clean up their FS usage and others might not clean up before setting up the FS, this could cause potential side effects. To make sure we exclude side effects, we tear down the FS between cron jobs. Signed-off-by: Roeland Jago Douma --- cron.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cron.php b/cron.php index a4d2bb8692..6fdc7cb24d 100644 --- a/cron.php +++ b/cron.php @@ -119,6 +119,8 @@ try { $logger->debug('Run ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']); $job->execute($jobList, $logger); + // clean up after unclean jobs + \OC_Util::tearDownFS(); $logger->debug('Finished ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']); $jobList->setLastJob($job);