Just use $wgJobTypesExcludedFromDefaultQueue directly
Bug: T145819
Change-Id: I0d978cdbef40ced98880c1a7d7524fd2b7438bfc
* @return void
*/
public function push( $jobs ) {
+ global $wgJobTypesExcludedFromDefaultQueue;
+
$jobs = is_array( $jobs ) ? $jobs : [ $jobs ];
if ( !count( $jobs ) ) {
return;
'true',
15
);
- if ( array_intersect( array_keys( $jobsByType ), $this->getDefaultQueueTypes() ) ) {
+ if ( array_diff( array_keys( $jobsByType ), $wgJobTypesExcludedFromDefaultQueue ) ) {
$cache->set(
$cache->makeGlobalKey( 'jobqueue', $this->wiki, 'hasjobs', self::TYPE_DEFAULT ),
'true',