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:
commit
657f1af263
2
cron.php
2
cron.php
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue