diff --git a/Utils/TaskSchedule/SchedulerAbstract.php b/Utils/TaskSchedule/SchedulerAbstract.php index 25cdf5a8e..489ae85aa 100644 --- a/Utils/TaskSchedule/SchedulerAbstract.php +++ b/Utils/TaskSchedule/SchedulerAbstract.php @@ -181,4 +181,16 @@ abstract class SchedulerAbstract { $this->run($task->getCommand()); } + + /** + * Get all jobs/tasks by name + * + * @param string $name Name of the job + * @param bool $exact Name has to be exact + * + * @return array + * + * @since 1.0.0 + */ + abstract public function getAllByName(string $name, bool $exact = true) : array; }