resilience4j Circuit Breaker is not working with suspend function - fallback function never get triggered #2041
Unanswered
shadikkhan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Spring Boot 2.X.X with Kotlin for Microservices development. I am using resilience4j for circuit breaker implementation and its working for non suspend function but when I am using suspend function (which has CircuitBreaker annotation) which is calling another suspend function inside of it(and has exception) then fallback function never get triggered.
If I will remove this
withContext
then it will call fallback function.Not sure if this is an existing issue resilience or is there way to solve this.
I am posting here to get some help from Community.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions