vendor/laravel/framework/src/Illuminate/Queue/Worker.php
/**
     * Mark the given job as failed if it has exceeded the maximum allowed attempts.
     *
     * This will likely be because the job previously exceeded a timeout.
     *
     * @param  string  $connectionName
     * @param  \Illuminate\Contracts\Queue\Job  $job
     * @param  int  $maxTries
     * @return void
     */
Mark the given job as failed if it has exceeded the maximum allowed attempts.
This will likely be because the job previously exceeded a timeout.

@param  string  $connectionName
@param  \Illuminate\Contracts\Queue\Job  $job
@param  int  $maxTries
@return void
Mark the given job as failed if it has exceeded the maximum allowed attempts . This will likely be because the job previously exceeded a timeout . @param string $connectionName @param \ Illuminate \ Contracts \ Queue \ Job $job @param int $maxTries @return void
protected function markJobAsFailedIfAlreadyExceedsMaxAttempts($connectionName, $job, $maxTries)
    {
        $maxTries = ! is_null($job->maxTries()) ? $job->maxTries() : $maxTries;
        if ($maxTries === 0 || $job->attempts() <= $maxTries) {
            return;
        }
        $this->failJob($connectionName, $job, $e = new MaxAttemptsExceededException(
            'A queued job has been attempted too many times. The job may have previously timed out.'
        ));
        throw $e;
    }
protected function markJobAsFailedIfAlreadyExceedsMaxAttempts ( $ connectionName , $ job , $ maxTries ) { $ maxTries = ! is_null ( $ job -> maxTries ( ) ) ? $ job -> maxTries ( ) : $ maxTries ; if ( $ maxTries === 0 || $ job -> attempts ( ) <= $ maxTries ) { return ; } $ this -> failJob ( $ connectionName , $ job , $ e = new MaxAttemptsExceededException ( 'A queued job has been attempted too many times. The job may have previously timed out.' ) ) ; throw $ e ; }
Mark the given job as failed if it has exceeded the maximum allowed attempts.
Mark the given job as failed if it has exceeded the maximum allowed attempts .