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

Change-Id: I69459f9a9f37c1d1307a9c48c37cb6063a934fa5
This commit is contained in:
Aaron Schulz 2013-12-19 12:22:45 -08:00
parent ab331157c5
commit d0edea52e7

View file

@ -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 ) {