Merge pull request #2458 from nextcloud/stable9-2457

[stable9] Tear down FS between cron jobs (#26223)
This commit is contained in:
Roeland Jago Douma 2016-12-02 08:16:39 +01:00 committed by GitHub
commit d0858a4a03
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,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);