Get not only time-sensitive next job from list but any
Before the change webcron used to select **only** time-sensitive tasks. Signed-off-by: Kirill Popov <kirill.s.popov@gmail.com>
This commit is contained in:
@@ -147,6 +147,7 @@ try {
|
||||
break;
|
||||
}
|
||||
|
||||
$logger->debug('CLI cron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
|
||||
$job->execute($jobList, $logger);
|
||||
// clean up after unclean jobs
|
||||
\OC_Util::tearDownFS();
|
||||
@@ -169,6 +170,7 @@ try {
|
||||
$jobList = \OC::$server->getJobList();
|
||||
$job = $jobList->getNext();
|
||||
if ($job != null) {
|
||||
$logger->debug('WebCron call has selected job with ID ' . strval($job->getId()), ['app' => 'cron']);
|
||||
$job->execute($jobList, $logger);
|
||||
$jobList->setLastJob($job);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user