From ad45a385ff6bf9d67ce2afd208d49add5fc44c46 Mon Sep 17 00:00:00 2001 From: Jesper Justesen Date: Thu, 26 Sep 2024 11:30:53 +0200 Subject: [PATCH] Add OperationCanceledException handlign to retry handler --- .../SettlementReports/SettlementReportOrchestration.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportOrchestration.cs b/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportOrchestration.cs index 91f118d..c78989a 100644 --- a/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportOrchestration.cs +++ b/source/settlement-report/Orchestration.SettlementReports/Functions/SettlementReports/SettlementReportOrchestration.cs @@ -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; }