private function handleConfig(KalturaSchedulerConfig $config) { KalturaLog::info("Save {$config->variable} [{$config->variablePart}] attribute to {$config->value} for worker {$config->workerName}"); $success = $this->schedulerConfig->saveConfig($config->variable, $config->value, $config->workerName, $config->variablePart); if ($success) { $config->commandStatus = KalturaControlPanelCommandStatus::DONE; } else { KalturaLog::err("Failed to save {$config->variable} [{$config->variablePart}] attribute to {$config->value} for worker {$config->workerName}"); $config->commandStatus = KalturaControlPanelCommandStatus::FAILED; } return $config; }