Command/RegenerateFailedTaskCommand.php
private function regenerateTaskById($id)
    {
        try {
            $response = $this->taskQueueService->regenerateTask($id);
            if ($response) {
                $this->output->writeln("<info>Regeneration succes</info>");
            } else {
                $this->output->writeln("<error>Regeneration succes</error>");
            }
        } catch (TaskQueueServiceException $e) {
            $this->output->writeln("<error>Error!:</error>" . $e->getMessage());
        }
    }
private function regenerateTaskById($id)
    {
        try {
            $response = $this->taskQueueService->regenerateTask($id);
            if ($response) {
                $this->output->writeln("<info>Regeneration succes</info>");
            } else {
                $this->output->writeln("<error>Regeneration succes</error>");
            }
        } catch (TaskQueueServiceException $e) {
            $this->output->writeln("<error>Error!:</error>" . $e->getMessage());
        }
    }
private function regenerateTaskById ( $ id ) { try { $ response = $ this -> taskQueueService -> regenerateTask ( $ id ) ; if ( $ response ) { $ this -> output -> writeln ( "<info>Regeneration succes</info>" ) ; } else { $ this -> output -> writeln ( "<error>Regeneration succes</error>" ) ; } } catch ( TaskQueueServiceException $ e ) { $ this -> output -> writeln ( "<error>Error!:</error>" . $ e -> getMessage ( ) ) ; } }
Regenerates a task that has failed

@param integer $id
@return void
Regenerates a task that has failed