Retry Failed Job?
myckhel opened this issue · 4 comments
myckhel commented
Question
Is it possible to retry failed job?
SimonErm commented
Yes you can pass attempts to the job options. https://simonerm.github.io/react-native-job-queue/docs/classes/queue#addjob
The attempts configure the number of retries.
myckhel commented
Yes you can pass attempts to the job options. https://simonerm.github.io/react-native-job-queue/docs/classes/queue#addjob
The attempts configure the number of retries.
I meant manually retrying a particular job without letting it retry automatically.
SimonErm commented
That's not possible this way, but you could set the attempts to 0 and use the workers onFailure callback to add a new job with the same payload, which should lead to the same behaviour.
myckhel commented
Okay.
Nice