public function runTaskNow($taskName)
    {
        $tasks = $this->loader->loadTasks();

        foreach ($tasks as $task) {
            if ($task->getName() === $taskName) {
                return $this->executeTask($task);
            }
        }

        throw new \InvalidArgumentException('Task ' . $taskName . ' not found');
    }
public function runTaskNow($taskName)
    {
        $tasks = $this->loader->loadTasks();

        foreach ($tasks as $task) {
            if ($task->getName() === $taskName) {
                return $this->executeTask($task);
            }
        }

        throw new \InvalidArgumentException('Task ' . $taskName . ' not found');
    }
public function runTaskNow ( $ taskName ) { $ tasks = $ this -> loader -> loadTasks ( ) ; foreach ( $ tasks as $ task ) { if ( $ task -> getName ( ) === $ taskName ) { return $ this -> executeTask ( $ task ) ; } } throw new \ InvalidArgumentException ( 'Task ' . $ taskName . ' not found' ) ; }
Run a specific task now. Will ignore the schedule completely.

@param string $taskName
@return string Task output.
Run a specific task now . Will ignore the schedule completely .