You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to only run certain logic when the job is retried a specific amount of times, I need to know the retry instance that's begin run.
So let's say I want to raise a specific exception when I know the job was already retried 3 times.
I couldn't find a way to do so with the current interface, reading the documentation. Is there any way? If not, is it reasonable to consider implementing it?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
It looks like you can access this through the retry_attempt accessor which is initialized in code, but backed in redis, you could also reconstruct the key if necessary and query redis as well -- I hope this helps.
In order to only run certain logic when the job is retried a specific amount of times, I need to know the retry instance that's begin run.
So let's say I want to raise a specific exception when I know the job was already retried 3 times.
I couldn't find a way to do so with the current interface, reading the documentation. Is there any way? If not, is it reasonable to consider implementing it?
Thanks in advance.
The text was updated successfully, but these errors were encountered: