From: Aaron Schulz Date: Thu, 19 Dec 2013 20:22:45 +0000 (-0800) Subject: Make executeReadyPeriodicTasks() notify the aggregator when jobs are released/recycled X-Git-Tag: 1.31.0-rc.0~17568^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=d0edea52e732acb93f602843dd828063e239d602;p=lhc%2Fweb%2Fwiklou.git Make executeReadyPeriodicTasks() notify the aggregator when jobs are released/recycled Change-Id: I69459f9a9f37c1d1307a9c48c37cb6063a934fa5 --- diff --git a/includes/job/JobQueueGroup.php b/includes/job/JobQueueGroup.php index 4f11bbf7fa..cf0c290c3c 100644 --- a/includes/job/JobQueueGroup.php +++ b/includes/job/JobQueueGroup.php @@ -392,6 +392,10 @@ class JobQueueGroup { } } } + // The tasks may have recycled jobs or release delayed jobs into the queue + if ( isset( $tasksRun[$type] ) && !$queue->isEmpty() ) { + JobQueueAggregator::singleton()->notifyQueueNonEmpty( $this->wiki, $type ); + } } $wgMemc->merge( $key, function ( $cache, $key, $lastRuns ) use ( $tasksRun ) {