Merge pull request #2457 from nextcloud/stable10-1712

[stable10] Tear down FS between cron jobs (#26223)
This commit is contained in:
Roeland Jago Douma 2016-12-02 08:16:24 +01:00 committed by GitHub
commit 1d5049acbe
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']);
$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);