function run_worker_monitor() { $workerStarter = Job_Monitor_Factory::createWorkerStarter(); if (!$workerStarter->isRun()) { Api_Core_Application::log("Не запущенны воркеры", null, Api_Component_Log_Logger::LEVEL_ERROR); run_restart_workers(); } }
public function runWorkerStarter() { $workerStarter = Job_Monitor_Factory::createWorkerStarter(); if (!$workerStarter->isRun()) { Api_Core_Application::log("Не запущенны воркеры", null, Api_Component_Log_Logger::LEVEL_ERROR); $workerStarter->startAll(); Api_Core_Application::log("Запустили воркеры", null, Api_Component_Log_Logger::LEVEL_ERROR); } }