public function getFailedJobs($queue)
    {
        try {
            $list = collect(app('queue.failer')->all())->where('queue', $queue->tube)
                                                       ->where('connection', $queue->connection);

            $list->map(function ($job) {
                $job = $this->mapJob($job);
            });

            return $list;
        } catch (Exception $e) {
            $this->eye->logger()->error('Unable to get Queue Failed Jobs', $e, $queue->id);
        }

        return collect([]);
    }
public function getFailedJobs($queue)
    {
        try {
            $list = collect(app('queue.failer')->all())->where('queue', $queue->tube)
                                                       ->where('connection', $queue->connection);

            $list->map(function ($job) {
                $job = $this->mapJob($job);
            });

            return $list;
        } catch (Exception $e) {
            $this->eye->logger()->error('Unable to get Queue Failed Jobs', $e, $queue->id);
        }

        return collect([]);
    }
public function getFailedJobs ( $ queue ) { try { $ list = collect ( app ( 'queue.failer' ) -> all ( ) ) -> where ( 'queue' , $ queue -> tube ) -> where ( 'connection' , $ queue -> connection ) ; $ list -> map ( function ( $ job ) { $ job = $ this -> mapJob ( $ job ) ; } ) ; return $ list ; } catch ( Exception $ e ) { $ this -> eye -> logger ( ) -> error ( 'Unable to get Queue Failed Jobs' , $ e , $ queue -> id ) ; } return collect ( [ ] ) ; }
Get a list of failed jobs for a given queue.

@param  \Eyewitness\Eye\Repo\Queue  $queue
@return collection
Get a list of failed jobs for a given queue .