19 declare(strict_types=1);
51 private readonly \
ILIAS\
Cron\CronJob $job,
53 private readonly
bool $isPlugin =
false 63 $this->job_id = (string) $record[
'job_id'];
64 $this->component = (string) $record[
'component'];
65 $this->schedule_type = is_numeric($record[
'schedule_type']) ? JobScheduleType::tryFrom(
66 (
int) $record[
'schedule_type']
68 $this->schedule_value = (
int) $record[
'schedule_value'];
69 $this->job_status = (
int) $record[
'job_status'];
70 $this->job_status_usr_id = (
int) $record[
'job_status_user_id'];
71 $this->job_status_type = (
int) $record[
'job_status_type'];
72 $this->job_status_timestamp = (
int) $record[
'job_status_ts'];
73 $this->job_result_status = (
int) $record[
'job_result_status'];
74 $this->job_result_usr_id = (
int) $record[
'job_result_user_id'];
75 $this->job_result_code = (string) $record[
'job_result_code'];
76 $this->job_result_message = (string) $record[
'job_result_message'];
77 $this->job_result_type = (
int) $record[
'job_result_type'];
78 $this->job_result_timestamp = (
int) $record[
'job_result_ts'];
79 $this->
class = (string) $record['class'];
80 $this->path = (string) $record[
'path'];
81 $this->running_timestamp = (
int) $record[
'running_ts'];
82 $this->job_result_duration = (
int) $record[
'job_result_dur'];
83 $this->alive_timestamp = (
int) $record[
'alive_ts'];
198 return $this->isPlugin;
204 if (!$type || !$this->
getJob()->hasFlexibleSchedule()) {
205 $type = $this->
getJob()->getDefaultScheduleType();
215 if (!$type || !$this->
getJob()->hasFlexibleSchedule()) {
216 $value = (
int) $this->
getJob()->getDefaultScheduleValue();
229 $title = $this->
getJob()->getTitle();
string $job_result_message
__construct(private readonly \ILIAS\Cron\CronJob $job, array $record, private readonly bool $isPlugin=false)
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
int $job_result_timestamp
getEffectiveScheduleType()
getEffectiveScheduleValue()
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
JobScheduleType $schedule_type
int $job_status_timestamp