summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-12-30 14:28:14 -0500
committerDavid Rothstein <drothstein@gmail.com>2013-12-30 14:28:14 -0500
commite868ee8451d1778a405a730f19292538de6d7921 (patch)
tree18cde7d1f3d710f48e8154c32cb9781caf78a37f /includes/common.inc
parent226fe6997057f1b2b58116e7bc35ffbcbaed726c (diff)
downloadbrdo-e868ee8451d1778a405a730f19292538de6d7921.tar.gz
brdo-e868ee8451d1778a405a730f19292538de6d7921.tar.bz2
Issue #2136369 by marvil07: Provide a way to avoid processing a queue during cron execution.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 38895c542..3b4bf580c 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -5282,6 +5282,10 @@ function drupal_cron_run() {
}
foreach ($queues as $queue_name => $info) {
+ if (!empty($info['skip on cron'])) {
+ // Do not run if queue wants to skip.
+ continue;
+ }
$function = $info['worker callback'];
$end = time() + (isset($info['time']) ? $info['time'] : 15);
$queue = DrupalQueue::get($queue_name);