13 public const ID =
'ecs_task_handler';
24 $this->
logger = $DIC->logger()->wsrv();
25 $this->
lng = $DIC->language();
26 $this->
lng->loadLanguageModule(
'ecs');
28 $this->result = new \ilCronJobResult();
33 return $this->
lng->txt(
'ecs_cron_task_scheduler');
38 return $this->
lng->txt(
'ecs_cron_task_scheduler_info');
68 $this->
logger->debug(
'Starting ecs task scheduler...');
74 $this->
logger->info(
'Starting task execution for ecs server: ' . $server->getTitle());
76 $scheduler->startTaskExecution();
77 }
catch (\Exception
$e) {
79 $this->result->setMessage(
$e->getMessage());
80 $this->
logger->warning(
'ECS task execution failed with message: ' . $e->getMessage());
Class ilCronEcsTaskScheduler.
getDefaultScheduleValue()
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
const DEFAULT_SCHEDULE_VALUE
const SCHEDULE_TYPE_IN_HOURS
@depracated This will be replaced with an ENUM in ILIAS 9
static getInstance()
Get singleton instance.
static _getInstanceByServerId($a_server_id)
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTas...
Component logger with individual log levels by component id.