Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Popov <kirill.s.popov@gmail.com>2022-04-23 16:42:37 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2022-04-25 16:22:58 +0300
commite864d4212ec80355fa568560cda37d59f3e7c46b (patch)
treea5cf7593eeed82b600cb79d9da36e295028732de /cron.php
parent7c38eec48aed89995661c20e46c9473b2b182773 (diff)
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>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/cron.php b/cron.php
index 5095a2c7574..a58ef2c206f 100644
--- a/cron.php
+++ b/cron.php
@@ -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);
}