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');
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();
136 }
catch (\Exception
$e) {
138 $this->result->setMessage(
$e->getMessage());
139 $this->logger->warning(
'ECS task execution failed with message: ' .
$e->getMessage());
An exception for terminatinating execution or to throw for unit testing.
Class ilCronEcsTaskScheduler.
__construct()
ilCronEcsTaskScheduler constructor.
getDefaultScheduleType()
Get schedule type.
getDefaultScheduleValue()
Get schedule value.
hasFlexibleSchedule()
Can the schedule be configured?
hasAutoActivation()
Is to be activated on "installation".
const DEFAULT_SCHEDULE_VALUE
Cron job application base class.
const SCHEDULE_TYPE_IN_HOURS
static getInstance()
Get singleton instance.
static _getInstanceByServerId($a_server_id)
get singleton instance Private access use ilECSTaskScheduler::start() or ilECSTaskScheduler::startTas...