diff --git a/modules/purge_drush/purge_drush.p_queue_work.inc b/modules/purge_drush/purge_drush.p_queue_work.inc index b46f5bd..5792dfc 100644 --- a/modules/purge_drush/purge_drush.p_queue_work.inc +++ b/modules/purge_drush/purge_drush.p_queue_work.inc @@ -50,7 +50,7 @@ function purge_drush_p_queue_work($format, QueueServiceInterface $purgeQueue, Pr // In finish mode, we'll fork ourselves until the entire queue is empty. if ($finish) { if ($purgeQueue->numberOfItems() < 1) { - return $return(FALSE, ['NOT_AUTHORIZED', dt('No items can be claimed from the queue.')]); + return $return(TRUE, ['No items can be claimed from the queue.']); } // Create the arguments list. Silence subprocesses in boolean mode. @@ -77,7 +77,7 @@ function purge_drush_p_queue_work($format, QueueServiceInterface $purgeQueue, Pr // Single chunk processing mode. else { if (!($claims = $purgeQueue->claim())) { - return $return(FALSE, ['NOT_AUTHORIZED', dt('No items can be claimed from the queue.')]); + return $return(TRUE, ['No items can be claimed from the queue.']); } // Attempt the cache invalidation and deal with errors. try {