diff --git a/code/DeltaKustoIntegration/Kusto/KustoManagementGateway.cs b/code/DeltaKustoIntegration/Kusto/KustoManagementGateway.cs index 9649311..a34b918 100644 --- a/code/DeltaKustoIntegration/Kusto/KustoManagementGateway.cs +++ b/code/DeltaKustoIntegration/Kusto/KustoManagementGateway.cs @@ -25,12 +25,12 @@ internal class KustoManagementGateway : IKustoManagementGateway .AddRetry(new RetryStrategyOptions { ShouldHandle = new PredicateBuilder().Handle(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(ex => ex.FailureCode == 401), MaxRetryAttempts = 2, BackoffType = DelayBackoffType.Linear,