Merge pull request #1712 from nextcloud/us_tear_down_fs_between_cron

[master] Tear down FS between cron jobs (#26223)
This commit is contained in:
Morris Jobke 2016-10-12 10:00:45 +02:00 committed by GitHub
commit 657f1af263
1 changed files with 2 additions and 0 deletions

View File

@ -119,6 +119,8 @@ try {
$logger->debug('Run ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']); $logger->debug('Run ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']);
$job->execute($jobList, $logger); $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']); $logger->debug('Finished ' . get_class($job) . ' job with ID ' . $job->getId(), ['app' => 'cron']);
$jobList->setLastJob($job); $jobList->setLastJob($job);