16 public const ID =
'ecs_task_handler';
45 $this->logger = $DIC->logger()->wsrv();
46 $this->lng = $DIC->language();
47 $this->lng->loadLanguageModule(
'ecs');
49 $this->result = new \ilCronJobResult();
57 return $this->lng->txt(
'ecs_cron_task_scheduler');
65 return $this->lng->txt(
'ecs_cron_task_scheduler_info');
105 return self::SCHEDULE_TYPE_IN_HOURS;
117 return self::DEFAULT_SCHEDULE_VALUE;
127 $this->logger->debug(
'Starting ecs task scheduler...');
131 foreach ($servers->getServers() as
$server) {
133 $this->logger->info(
'Starting task execution for ecs server: ' .
$server->getTitle());
135 $scheduler->startTaskExecution();
138 $this->result->setMessage($e->getMessage());
139 $this->logger->warning(
'ECS task execution failed with message: ' . $e->getMessage());
hasAutoActivation()
Is to be activated on "installation".
Cron job application base class.
static getInstance()
Get singleton instance.
getDefaultScheduleValue()
Get schedule value.
const DEFAULT_SCHEDULE_VALUE
Class ilCronEcsTaskScheduler.
static _getInstanceByServerId($a_server_id)
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTas...
__construct()
ilCronEcsTaskScheduler constructor.
getDefaultScheduleType()
Get schedule type.
hasFlexibleSchedule()
Can the schedule be configured?