From 61c2a92cecd662c91216cbac899b3b74a0308215 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 25 Apr 2013 14:45:49 -0700 Subject: [PATCH] [JobQueue] Added a delayedJobsEnabled() function. Change-Id: I7fe6e04aa5c51a61facd5a7327c5544dadb4108b --- includes/job/JobQueue.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/includes/job/JobQueue.php b/includes/job/JobQueue.php index 92bac3fab3..6bf6f82f0f 100644 --- a/includes/job/JobQueue.php +++ b/includes/job/JobQueue.php @@ -128,16 +128,30 @@ abstract class JobQueue { } /** + * @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() { -- 2.20.1