Custom Retry policy not triggering in PollyResiliencePipelineProvider
#2241
Replies: 2 comments 4 replies
-
Dear Aftab,
I guess you have a problem with timeout settings... Look, the request was triggered at
I can't recommend right now, because firstly we have to solve the problem with Timeout event! P.S. FYIPlease note that currently Ocelot settings are limited in control of timeout. So you can define only route timeouts in QoS. |
Beta Was this translation helpful? Give feedback.
-
I have tested Retry, Timeout, and Circuitbreaker. All of that works fine for me. @raman-m thanks for your endless support and cooperation. |
Beta Was this translation helpful? Give feedback.
-
I've implemented a custom retry mechanism using Polly in the
PollyResiliencePipelineProvider
. Despite configuring theShouldHandle
property and providing retry strategies, retries are not triggered for retry-able exceptions or HTTP status codes.PollyResiliencePipelineProvider
.Code Snippet:
.AddPolly<PollyResiliencePipelineProvider>();
Log:
Specifications
Expected Behavior:
The retry logic should trigger on HTTP 503 status codes or
HttpRequestException
.Actual Behavior:
The retry mechanism is not invoked, and no retry attempts are logged.
Beta Was this translation helpful? Give feedback.
All reactions