/** * @throws RuntimeException */ private function flagEntries() { if ($this->isSchedulerInstalled()) { $taskUid = $this->getSchedulerTaskUid(); $task = $this->scheduler->fetchTask($taskUid); if ($this->scheduler->isValidTaskObject($task)) { $this->scheduler->executeTask($task); } else { throw new RuntimeException('task-object of feature-flag-task is not valid!'); } } }