Pass the limiter to the when/report callbacks in ThrottlesExceptions & ThrottlesExceptionsWithRedis? #56128
Replies: 1 comment
-
Closed as I just made a PR #56129 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to report the last attempt before ratelimiting an exception. I want to give the job the
maxAttempts
to recover, but on that last try, it would be nice to report what is happening. Currently, there is no hook into thelimiter
, so there is no clean way to get to theremaining
to see if it is the last one. I know that we would look up the limiter in the callback, but that would require knowing the key, etc. It would be nice if the limiter were just passed as the 2nd option...I could make a PR on this, but I wanted to ask if others see value in it before I do.
Beta Was this translation helpful? Give feedback.
All reactions