logInfo('Scheduler started'); $schedulerResult = $this->jobsqueuelib->schedule(); // If error occurred then log it if (isError($schedulerResult)) $this->logError(getError($schedulerResult)); // If non blocking errors occurred log them if (hasData($schedulerResult) && !isEmptyArray(getData($schedulerResult))) { foreach (getData($schedulerResult) as $nonBlockingError) { $this->logWarning($nonBlockingError); } } $this->logInfo('Scheduler ended'); } }