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

Step retries should take precedence over triggering :next step defined on "ERROR" condition #49

Open
mikub opened this issue Dec 13, 2021 · 0 comments

Comments

@mikub
Copy link
Contributor

mikub commented Dec 13, 2021

Currently retries are performed if a step throws an exception and there is no next step with "ERROR" condition: https://github.com/mikub/titanoboa/blob/cluster/src/clj/titanoboa/processor.clj#L577

Though this design is good and has its use cases it would be great if the behaviour was configurable. Trying a N retries first before moving on to the "ERROR" step would be an ideal setup for circuit breaker pattern. E.g. retry 3 times and if all fail then sleep for 5 sec before retrying again.

@mikub mikub changed the title Step retries should take precendence over triggering :next step defined on "ERROR" condition Step retries should take precedence over triggering :next step defined on "ERROR" condition Dec 13, 2021
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

1 participant