Closed webkod3r closed 5 years ago
Hey there,
Unfortunately we don't support this version anymore. Please check out our support policy on which versions we are currently supporting. Can you please try to upgrade to the latest version and see if your problem persists? We'll help you out and re-open this issue if so.
Thanks!
Description:
When dealing with failed database jobs due to an exception or max attempts reached, the
$this->attempts()
method evaluates to1
instead of$tries + 1
.Steps To Reproduce:
Create a
Job
and set thepublic $tries = x
. After the job gets inserted into the DB change theattempts
column value tox
(your max attempts allowed). Once everything is set-up, run theartisan
command to process the job:The execution will go directly to the
failed()
inside your job and$this->attempts()
will evaluate1