Esempio n. 1
0
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();
    }
}
Esempio n. 2
0
 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);
     }
 }