Skip to content

Commit

Permalink
Add OperationCanceledException handlign to retry handler
Browse files Browse the repository at this point in the history
  • Loading branch information
FirestarJes committed Sep 26, 2024
1 parent 33269d1 commit ad45a38
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ private static bool HandleDataSourceExceptions(RetryContext retryContext, ILogge
// 1) From SQL.
// 2) From BlobStorage.
if (retryContext.LastFailure.ErrorType.Contains("SqlException") ||
retryContext.LastFailure.ErrorType == typeof(RequestFailedException).FullName)
retryContext.LastFailure.ErrorType == typeof(RequestFailedException).FullName ||
retryContext.LastFailure.ErrorType == typeof(OperationCanceledException).FullName)
{
return retryContext.LastAttemptNumber <= 2;
}
Expand Down

0 comments on commit ad45a38

Please sign in to comment.