-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.3] [Queue] queue:listen default value maxTries=0 let every job fail with a MaxAttemptsExceededException #15370
Comments
That looks correct. |
Max trys 0 means never process any jobs. 1 means only try once. |
Well, the code suggests something else for maxTries = 0: |
The linked line of code, and the docs, infer that maxTries=0 should retry indefinitely. The exception you get indicates that the check for |
I logged the queue worker execution and got the following (stripped) result for the [object] (Illuminate\Queue\WorkerOptions: {
"delay":"0",
"memory":"128",
"timeout":60,
"sleep":"3",
"maxTries":"0"
}, This confirms that every argument except the Can you please review this issue again, @GrahamCampbell ? |
This was fixed in 5.3.9. |
Ah, great! Thank you for the info 👍 |
Description:
When I run
queue:listen
it spawns new child processes like this by default:artisan queue:work --once --queue=default --delay=0 --memory=128 --sleep=3 --tries=0 --env=production
This causes a
MaxAttemptsExceededException
for every single job and make it fail instantly without a single try. If I setmaxTries
to something larger than 0 the job are correctly processed.The text was updated successfully, but these errors were encountered: