Merge "JobQueueGroup: Allow readOnlyReason to be specified per JQ type"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Fri, 20 Jul 2018 10:30:37 +0000 (10:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 20 Jul 2018 10:30:37 +0000 (10:30 +0000)
includes/jobqueue/JobQueueGroup.php

index 37c8890..820c492 100644 (file)
@@ -111,7 +111,7 @@ class JobQueueGroup {
                        $conf = $conf + $wgJobTypeConf['default'];
                }
                $conf['aggregator'] = JobQueueAggregator::singleton();
-               if ( $this->readOnlyReason !== false ) {
+               if ( !isset( $conf['readOnlyReason'] ) ) {
                        $conf['readOnlyReason'] = $this->readOnlyReason;
                }