diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-09-30 13:30:16 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-12 08:37:17 +0200 |
commit | 5eb01b01a9ec524c24d7c3ac027615eacd463686 (patch) | |
tree | fbc3c0d8148318d1c4ab04d304159c5364d64300 /cron.php | |
parent | c2be9cb605886f5d9ab6642bf45c35ed5ebe2392 (diff) | |
download | nextcloud-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.php | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |