src/Consumer.php
/**
     * Mark the given job as failed if it has exceeded the maximum allowed attempts.
     *
     * @param string $connectionName
     * @param Job|RabbitMQJob $job
     * @param int $maxTries
     * @param Exception $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 .
protected function markJobAsFailedIfWillExceedMaxAttempts($connectionName, $job, $maxTries, $e): void
    {
        parent::markJobAsFailedIfWillExceedMaxAttempts($connectionName, $job, $maxTries, $e);
        if (!$job->isDeletedOrReleased()) {
            $job->getRabbitMQ()->reject($job);
        }
    }
protected function markJobAsFailedIfWillExceedMaxAttempts ( $ connectionName , $ job , $ maxTries , $ e ) : void { parent :: markJobAsFailedIfWillExceedMaxAttempts ( $ connectionName , $ job , $ maxTries , $ e ) ; if ( ! $ job -> isDeletedOrReleased ( ) ) { $ job -> getRabbitMQ ( ) -> reject ( $ job ) ; } }
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 .