Skip to content
Snippets Groups Projects

Issue #1875020: Cron queue gets processed every time cron is called, regardless of whether it's already being processed elsewhere

Open Issue #1875020: Cron queue gets processed every time cron is called, regardless of whether it's already being processed elsewhere
Open pmagunia requested to merge issue/drupal-1875020:1875020-cron-queue-gets into 9.4.x
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
@@ -134,6 +134,10 @@ public function run() {
@@ -134,6 +134,10 @@ public function run() {
}
}
else {
else {
$this->invokeCronHandlers();
$this->invokeCronHandlers();
 
 
// Process cron queues.
 
$this->processQueues();
 
$this->setCronLastTime();
$this->setCronLastTime();
// Release cron lock.
// Release cron lock.
@@ -143,9 +147,6 @@ public function run() {
@@ -143,9 +147,6 @@ public function run() {
$return = TRUE;
$return = TRUE;
}
}
// Process cron queues.
$this->processQueues();
// Restore the user.
// Restore the user.
$this->accountSwitcher->switchBack();
$this->accountSwitcher->switchBack();
Loading