From: Aaron Schulz Date: Wed, 11 Mar 2015 18:10:12 +0000 (-0700) Subject: Made JobQueueFederated::supportsDelayedJobs() check all the partition queues X-Git-Tag: 1.31.0-rc.0~12114^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ce33c484edfc8c72ff095f1c3bcf6c4b508bdf5b;p=lhc%2Fweb%2Fwiklou.git Made JobQueueFederated::supportsDelayedJobs() check all the partition queues Change-Id: Id451faedd6286a84f993fa183e67e0bf35d21c41 --- diff --git a/includes/jobqueue/JobQueueFederated.php b/includes/jobqueue/JobQueueFederated.php index a0a4b7b853..66bbb9cd97 100644 --- a/includes/jobqueue/JobQueueFederated.php +++ b/includes/jobqueue/JobQueueFederated.php @@ -132,7 +132,13 @@ class JobQueueFederated extends JobQueue { } protected function supportsDelayedJobs() { - return true; // defer checks to the partitions + foreach ( $this->partitionQueues as $queue ) { + if ( !$queue->supportsDelayedJobs() ) { + return false; + } + } + + return true; } protected function doIsEmpty() {