31 return hash(
"sha256", self::class);
36 return "Fill ini with settings for components/ILIAS/BackgroundTasks_";
58 if (!
$ini->groupExists(
"background_tasks")) {
59 $ini->addGroup(
"background_tasks");
63 $io = $environment->
getResource(Environment::RESOURCE_ADMIN_INTERACTION);
65 $io->inform(
'Asynchronous background tasks need SOAP administration to be enabled. Make sure to enable it in your configuarion.');
68 $ini->setVariable(
"background_tasks",
"concurrency", $this->config->getType());
69 $ini->setVariable(
"background_tasks",
"number_of_concurrent_tasks", $this->config->getMaxCurrentTasks());
84 if (!
$ini->groupExists(
"background_tasks")) {
87 if (
$ini->readVariable(
"background_tasks",
"concurrency") !== $this->config->getType()) {
90 return $ini->readVariable(
"background_tasks",
"number_of_concurrent_tasks") !== $this->config->getMaxCurrentTasks();
getHash()
Get a hash for this objective.
An objective is a desired state of the system that is supposed to be created by the setup...
__construct(protected ilBackgroundTasksSetupConfig $config)
getPreconditions(Environment $environment)
Signals that some goal won't be achievable by actions of the system ever.
isApplicable(Environment $environment)
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
achieve(Environment $environment)
Objectives can be achieved.
An environment holds resources to be used in the setup process.
isNotable()
Get to know if this is an interesting objective for a human.
getLabel()
Get a label that describes this objective.