From e868ee8451d1778a405a730f19292538de6d7921 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 30 Dec 2013 14:28:14 -0500 Subject: Issue #2136369 by marvil07: Provide a way to avoid processing a queue during cron execution. --- includes/common.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes') 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); -- cgit v1.2.3