Skip to content

Commit

Permalink
Catch 401s that seem to come as throttle exception?
Browse files Browse the repository at this point in the history
  • Loading branch information
vplauzon committed Oct 25, 2023
1 parent df2d03e commit 0dc3a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/DeltaKustoIntegration/Kusto/KustoManagementGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ internal class KustoManagementGateway : IKustoManagementGateway
.AddRetry(new RetryStrategyOptions
{
ShouldHandle = new PredicateBuilder().Handle<KustoException>(ex => !ex.IsPermanent),
MaxRetryAttempts = 3,
BackoffType = DelayBackoffType.Linear,
MaxRetryAttempts = 5,
BackoffType = DelayBackoffType.Exponential,
Delay = TimeSpan.FromSeconds(1)
})
.AddRetry(new RetryStrategyOptions
{
{ // Unauthorized
ShouldHandle = new PredicateBuilder().Handle<KustoException>(ex => ex.FailureCode == 401),
MaxRetryAttempts = 2,
BackoffType = DelayBackoffType.Linear,
Expand Down

0 comments on commit 0dc3a16

Please sign in to comment.