Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Retry on Error #326

Open
sbscomp opened this issue Oct 17, 2022 · 1 comment
Open

Feature Request: Retry on Error #326

sbscomp opened this issue Oct 17, 2022 · 1 comment

Comments

@sbscomp
Copy link

sbscomp commented Oct 17, 2022

I would like to be able to specify that on error (perhaps a custom exception for this purpose), a given job will be retried again in T period of time, potentially with the ability to specify up to N times. So something along the lines of:

Schedule(() => JobFunction())).NonReentrant().ToRunEvery(1).Weekdays().At(6,30).RetryOnceIn(1).Hours();
or
Schedule(() => JobFunction())).NonReentrant().ToRunEvery(1).Weekdays().At(6,30).RetryEvery(1).Hours().ForTimes(5);

@ExtraTNT
Copy link

i would handle this in your application in the individual steps. so you can get more performance out of it (you don't retry 200 requests, if one fails)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants