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");
62 $ini->setVariable(
"background_tasks",
"concurrency", $this->config->getType());
63 $ini->setVariable(
"background_tasks",
"number_of_concurrent_tasks", $this->config->getMaxCurrentTasks());
78 if (!
$ini->groupExists(
"background_tasks")) {
81 if (
$ini->readVariable(
"background_tasks",
"concurrency") !== $this->config->getType()) {
84 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)
achieve(Environment $environment)
Objectives can be achieved.
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.
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.