summaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-09-30 13:30:16 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-10-12 08:37:17 +0200
commit5eb01b01a9ec524c24d7c3ac027615eacd463686 (patch)
treefbc3c0d8148318d1c4ab04d304159c5364d64300 /cron.php
parentc2be9cb605886f5d9ab6642bf45c35ed5ebe2392 (diff)
downloadnextcloud-server-5eb01b01a9ec524c24d7c3ac027615eacd463686.tar.gz
nextcloud-server-5eb01b01a9ec524c24d7c3ac027615eacd463686.zip
[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 <roeland@famdouma.nl>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index a4d2bb8692c..6fdc7cb24d3 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);