Skip to content

Commit

Permalink
Merge pull request #1712 from nextcloud/us_tear_down_fs_between_cron
Browse files Browse the repository at this point in the history
[master] Tear down FS between cron jobs (#26223)
  • Loading branch information
MorrisJobke committed Oct 12, 2016
2 parents 1992d4b + 5eb01b0 commit 657f1af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@

$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);
Expand Down

0 comments on commit 657f1af

Please sign in to comment.