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();
$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);
}
* @param bool $onlyTimeSensitive
* @return IJob|null
*/
- public function getNext(bool $onlyTimeSensitive = true): ?IJob {
+ public function getNext(bool $onlyTimeSensitive = false): ?IJob {
$query = $this->connection->getQueryBuilder();
$query->select('*')
->from('jobs')
* @param bool $onlyTimeSensitive
* @return IJob|null
*/
- public function getNext(bool $onlyTimeSensitive = true): ?IJob {
+ public function getNext(bool $onlyTimeSensitive = false): ?IJob {
if (count($this->jobs) > 0) {
if ($this->last < (count($this->jobs) - 1)) {
$i = $this->last + 1;