19declare(strict_types=1);
43 if (\in_array(PHP_SAPI, array_map(
'strtolower', $this->
getValidPhpApis()),
true)) {
44 $this->job_manager->runActiveJobs($actor);
50 return $this->job_manager->runJobManual($jobId, $actor);
55 $this->job_manager->resetJob($job, $actor);
60 $this->job_manager->activateJob($job, $actor, $wasManuallyExecuted);
65 $this->job_manager->deactivateJob($job, $actor, $wasManuallyExecuted);
70 return $this->job_manager->isJobActive($jobId);
75 return $this->job_manager->isJobInactive($jobId);
78 public function ping(
string $jobId): void
80 $this->job_manager->ping($jobId);
runJobManual(string $jobId, \ilObjUser $actor)
isJobInactive(string $jobId)
runActiveJobs(\ilObjUser $actor)
__construct(protected JobManager $job_manager)
resetJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor)
isJobActive(string $jobId)
deactivateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted=false)
activateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted=false)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.