/**
* Jobby scheduler entry point
*/
public function actionRun()
{
$jobby = new Jobby();
$tasks = $this->getTasks();
/** @var JobbyModelInterface[] $tasks */
foreach ($tasks as $task) {
$output = $task->getJobbyOutput();
$jobby->add($task->getPrimaryKey(), ['command' => $task->getJobbyCommand(), 'schedule' => $task->getJobbySchedule(), 'output' => $output ? $output : null, 'enabled' => $task->getJobbyEnabled(), 'debug' => false]);
}
$jobby->run();
echo count($tasks) . ' jobby tasks found' . PHP_EOL;
}