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.
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.