react-native-queue icon indicating copy to clipboard operation
react-native-queue copied to clipboard

Retry delay before processing a job again

Open vishgoel007 opened this issue 5 years ago • 3 comments

Hello!

Is there any way by which i can delay a job before processing again on failure i.e retry delay ?

vishgoel007 avatar Nov 04 '19 08:11 vishgoel007

Just in case it helps you, I've created a pr for this: #63 . Fork here.

gruffT avatar Feb 15 '20 11:02 gruffT

@gruffT How does this work? Do i need to pass retryDelay props in queue with some time(seconds/milliseconds?).

vishgoel007 avatar Feb 15 '20 15:02 vishgoel007

That's correct. Pass in the job options via createJob alongside timeout, priority etc.. Set parameter retryDelay to the required delay in ms.

Good luck

On Sat, 15 Feb 2020, 15:28 vishal goel, [email protected] wrote:

@gruffT https://github.com/gruffT How does this work? Do i need to pass retryDelay props in queue with some time(seconds/milliseconds?).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/billmalarky/react-native-queue/issues/59?email_source=notifications&email_token=AAYIUMNXMA25BFPQYYTGSJLRDACYBA5CNFSM4JIQNPNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3NL7A#issuecomment-586601980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAYIUMLXYYGZY6AM2U4CQW3RDACYBANCNFSM4JIQNPNA .

gruffT avatar Feb 17 '20 10:02 gruffT