/** * Process queued tasks */ public static function process_task_queue($po_opts = null) { require_once __CA_LIB_DIR__ . "/core/TaskQueue.php"; $vo_tq = new TaskQueue(); if (!$po_opts->getOption("quiet")) { CLIUtils::addMessage(_t("Processing queued tasks...")); } $vo_tq->processQueue(); // Process queued tasks if (!$po_opts->getOption("quiet")) { CLIUtils::addMessage(_t("Processing recurring tasks...")); } $vo_tq->runPeriodicTasks(); // Process recurring tasks implemented in plugins if (!$po_opts->getOption("quiet")) { CLIUtils::addMessage(_t("Processing complete.")); } return true; }