Skip to content

Commit

Permalink
be less strict with dataforsyningen client healthcheck
Browse files Browse the repository at this point in the history
it's super noisy when triggered
  • Loading branch information
NielsPilgaard committed Aug 10, 2024
1 parent ff10180 commit 7c3a0a2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ public static IServiceCollection AddDataForsyningenClient(this IServiceCollectio

var pingCircuitBreakerOptions = new HttpCircuitBreakerStrategyOptions
{
FailureRatio = 0.5,
BreakDuration = TimeSpan.FromMinutes(5),
MinimumThroughput = 2,
FailureRatio = 0.25,
BreakDuration = TimeSpan.FromMinutes(1),
ShouldHandle = arguments =>
new ValueTask<bool>(
arguments.Outcome.Exception is not null ||
Expand Down

0 comments on commit 7c3a0a2

Please sign in to comment.