Tim Starling has submitted this change and it was merged.

Change subject: [JobQueue] Added a delayedJobsEnabled() function.
......................................................................


[JobQueue] Added a delayedJobsEnabled() function.

Change-Id: I7fe6e04aa5c51a61facd5a7327c5544dadb4108b
---
M includes/job/JobQueue.php
1 file changed, 14 insertions(+), 0 deletions(-)

Approvals:
  Tim Starling: Verified; Looks good to me, approved



diff --git a/includes/job/JobQueue.php b/includes/job/JobQueue.php
index 92bac3f..6bf6f82 100644
--- a/includes/job/JobQueue.php
+++ b/includes/job/JobQueue.php
@@ -128,16 +128,30 @@
        }
 
        /**
+        * @return bool Whether delayed jobs are enabled
+        * @since 1.22
+        */
+       final public function delayedJobsEnabled() {
+               return $this->checkDelay;
+       }
+
+       /**
+        * Get the allowed queue orders for configuration validation
+        *
         * @return Array Subset of (random, timestamp, fifo, undefined)
         */
        abstract protected function supportedOrders();
 
        /**
+        * Get the default queue order to use if configuration does not specify 
one
+        *
         * @return string One of (random, timestamp, fifo, undefined)
         */
        abstract protected function optimalOrder();
 
        /**
+        * Find out if delayed jobs are supported for configuration validation
+        *
         * @return boolean Whether delayed jobs are supported
         */
        protected function supportsDelayedJobs() {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I7fe6e04aa5c51a61facd5a7327c5544dadb4108b
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Daniel Kinzler <[email protected]>
Gerrit-Reviewer: Tim Starling <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to