/** * Attempt to process a chunk from the queue. * * When processing already occurred earlier during this request, it can occur * that this call will not process anything anymore. To prevent resource * shortage, _acquia_purge_get_capacity() maintains global status of how much * items can still be processed, and can return 0 at some point. * * @param bool $log * (optional) Whether diagnostic failure should be logged or not. */ protected function processQueueChunk($log = TRUE) { if (!$this->processingOccurred) { parent::processQueueChunk($log); $this->processingOccurred = TRUE; } }
/** * {@inheritdoc} */ public function __construct($service) { parent::__construct($service); $this->scriptClient = $this->service->modulePath . $this->scriptClient; }