[master] Tear down FS between cron jobs (#26223)

Because some cron jobs do not always properly clean up their FS usage
and others might not clean up before setting up the FS, this could
cause potential side effects.

To make sure we exclude side effects, we tear down the FS between cron
jobs.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Vincent Petry 2016-09-30 13:30:16 +02:00 committed by Roeland Jago Douma
parent c2be9cb605
commit 5eb01b01a9
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
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);