33     protected \ILIAS\BackgroundTasks\Bucket 
$bucket;
    47         $this->bucket->setState($state);
    48         $this->bucket->heartbeat();
    49         $this->persistence->updateBucket($this->bucket);
    54         $this->bucket->setPercentage($task, $percentage);
    55         $this->bucket->heartbeat();
    56         $this->persistence->updateBucket($this->bucket);
    61         $this->bucket->setCurrentTask($task);
    62         $this->bucket->heartbeat();
    63         $this->persistence->updateBucket($this->bucket);
    72         $this->bucket->heartbeat();
    73         $this->persistence->updateBucket($this->bucket);
 
Class PersistingObserver. 
 
__construct(Bucket $bucket, Persistence $persistence)
 
heartbeat()
I'm still alive! If your calculation takes a really long time don't forget to use the heartbeat...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
ILIAS BackgroundTasks Bucket $bucket
 
ILIAS BackgroundTasks Persistence $persistence
 
notifyCurrentTask(Task $task)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
notifyPercentage(Task $task, int $percentage)