Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/102749


Change subject: Make executeReadyPeriodicTasks() notify the aggregator when 
jobs are released/recycled
......................................................................

Make executeReadyPeriodicTasks() notify the aggregator when jobs are 
released/recycled

Change-Id: I69459f9a9f37c1d1307a9c48c37cb6063a934fa5
---
M includes/job/JobQueueGroup.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/49/102749/1

diff --git a/includes/job/JobQueueGroup.php b/includes/job/JobQueueGroup.php
index 4f11bbf..cf0c290 100644
--- a/includes/job/JobQueueGroup.php
+++ b/includes/job/JobQueueGroup.php
@@ -392,6 +392,10 @@
                                        }
                                }
                        }
+                       // 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 ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/102749
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I69459f9a9f37c1d1307a9c48c37cb6063a934fa5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to