I wanna clarification on the explanation on return [new ThrottlesExceptions(10, 5)]; because it said 5 minutes for the second parameter, but from the hint, it is decaySeconds, so I assume it should be seconds, not minutes so I think it should be corrected in the doc as " if the job throws 10 exceptions within 5 seconds". Sorry if I'm wrong.
#Explanation on throttling exceptions documentation
1 messages · Page 1 of 1 (latest)
So I assume you're using Laravel 10 while looking at the Laravel 11 docs. This has indeed been changed from minutes to seconds, see https://laravel.com/docs/11.x/upgrade#per-second-rate-limiting
@median glacier ok, so does that means that the doc need to be updated too, since it should be seconds (the second constructor arguments), not minutes
or is it left like that because wanna avoid confuse with previous change (before this it is minutes yes)
Eh?
11.x: https://laravel.com/api/11.x/Illuminate/Queue/Middleware/ThrottlesExceptions.html#method___construct decaySeconds
10.x: https://laravel.com/api/10.x/Illuminate/Queue/Middleware/ThrottlesExceptions.html#method___construct decayMinutes
The docs are correct..?
Ah, you mean these docs https://laravel.com/docs/11.x/queues#throttling-exceptions, yeah guess that was an oversight
yup, I'll leave to you guys to edit it since it's granularity are in seconds. Thank you for the reply. Closing this now.