public function retryAll($queue_id)
    {
        $queue = Queue::findOrFail($queue_id);
        $jobs = $this->eye->queue()->getFailedJobs($queue);
        $failed = false;

        foreach ($jobs as $job) {
            try {
                Artisan::call('queue:retry', ['id' => [$job->id]]);
            } catch (Exception $e) {
                $this->eye->logger()->error('Retry of failed job unsuccessful', $e, ['job_id' => $job->id, 'queue_id' => $queue_id]);
                $failed = true;
            }
        }

        if ($failed) {
            return redirect(route('eyewitness.queues.show', $queue_id).'#failed')->withWarning('Some of the jobs did not get retried successfully. You should check your logs for further information.');
        }

        return redirect(route('eyewitness.queues.show', $queue_id).'#failed')->withSuccess('All the jobs have been pushed back onto the queue to be tried again.');
    }
public function retryAll($queue_id)
    {
        $queue = Queue::findOrFail($queue_id);
        $jobs = $this->eye->queue()->getFailedJobs($queue);
        $failed = false;

        foreach ($jobs as $job) {
            try {
                Artisan::call('queue:retry', ['id' => [$job->id]]);
            } catch (Exception $e) {
                $this->eye->logger()->error('Retry of failed job unsuccessful', $e, ['job_id' => $job->id, 'queue_id' => $queue_id]);
                $failed = true;
            }
        }

        if ($failed) {
            return redirect(route('eyewitness.queues.show', $queue_id).'#failed')->withWarning('Some of the jobs did not get retried successfully. You should check your logs for further information.');
        }

        return redirect(route('eyewitness.queues.show', $queue_id).'#failed')->withSuccess('All the jobs have been pushed back onto the queue to be tried again.');
    }
public function retryAll ( $ queue_id ) { $ queue = Queue :: findOrFail ( $ queue_id ) ; $ jobs = $ this -> eye -> queue ( ) -> getFailedJobs ( $ queue ) ; $ failed = false ; foreach ( $ jobs as $ job ) { try { Artisan :: call ( 'queue:retry' , [ 'id' => [ $ job -> id ] ] ) ; } catch ( Exception $ e ) { $ this -> eye -> logger ( ) -> error ( 'Retry of failed job unsuccessful' , $ e , [ 'job_id' => $ job -> id , 'queue_id' => $ queue_id ] ) ; $ failed = true ; } } if ( $ failed ) { return redirect ( route ( 'eyewitness.queues.show' , $ queue_id ) . '#failed' ) -> withWarning ( 'Some of the jobs did not get retried successfully. You should check your logs for further information.' ) ; } return redirect ( route ( 'eyewitness.queues.show' , $ queue_id ) . '#failed' ) -> withSuccess ( 'All the jobs have been pushed back onto the queue to be tried again.' ) ; }
Retry all the jobs on this queue.

@param  integer  $queue_id
@return \Illuminate\Http\Response
Retry all the jobs on this queue .