vendor/laravel/framework/src/Illuminate/Queue/Worker.php
/**
     * Mark the given job as failed if it has exceeded the maximum allowed attempts.
     *
     * @param  string  $connectionName
     * @param  \Illuminate\Contracts\Queue\Job  $job
     * @param  int  $maxTries
     * @param  \Exception  $e
     * @return void
     */
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 .
protected function markJobAsFailedIfWillExceedMaxAttempts($connectionName, $job, $maxTries, $e)
    {
        $maxTries = ! is_null($job->maxTries()) ? $job->maxTries() : $maxTries;
        if ($maxTries > 0 && $job->attempts() >= $maxTries) {
            $this->failJob($connectionName, $job, $e);
        }
    }
protected function markJobAsFailedIfWillExceedMaxAttempts ( $ connectionName , $ job , $ maxTries , $ e ) { $ maxTries = ! is_null ( $ job -> maxTries ( ) ) ? $ job -> maxTries ( ) : $ maxTries ; if ( $ maxTries > 0 && $ job -> attempts ( ) >= $ maxTries ) { $ this -> failJob ( $ connectionName , $ job , $ 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 .