From b4a5df3379b756a549c10fd47b73bae36b8e0790 Mon Sep 17 00:00:00 2001 From: Sofie Wisse Date: Tue, 31 Oct 2023 12:23:54 +0100 Subject: [PATCH] disable failing method --- .github/workflows/build.yml | 2 +- Functions/Helpers/RetryHelper.cs | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 555d59d2..2fadb226 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: NUGET_AUTH_TOKEN: ${{ secrets.PAT }} - name: dotnet build - run: dotnet build -c release + run: dotnet build Functions -c release # test: # needs: build diff --git a/Functions/Helpers/RetryHelper.cs b/Functions/Helpers/RetryHelper.cs index 04bfe90d..4dac1f1d 100644 --- a/Functions/Helpers/RetryHelper.cs +++ b/Functions/Helpers/RetryHelper.cs @@ -18,15 +18,15 @@ public static class RetryHelper private const int MaxRetryInterval = 25 * 60; // Maximum time to wait private const int RetryTimeout = 5 * 60; // Time to wait before a single retry times out - public static Task ExecuteInvalidDocumentVersionPolicyAsync(string organization, Func action) - { - AsyncRetryPolicy invalidDocumentVersionPolicy = Policy - .Handle(ex => - ex.Call.HttpStatus == HttpStatusCode.BadRequest && ex.Call.Request.IsExtMgtRequest(organization)) - .WaitAndRetryAsync(MaxNumberOfAttempts, retryAttempt => TimeSpan.FromSeconds(new Random().Next(5, 20))); + //public static Task ExecuteInvalidDocumentVersionPolicyAsync(string organization, Func action) + //{ + // AsyncRetryPolicy invalidDocumentVersionPolicy = Policy + // .Handle(ex => + // ex.Call.HttpStatus == HttpStatusCode.BadRequest && ex.Call.Request.IsExtMgtRequest(organization)) + // .WaitAndRetryAsync(MaxNumberOfAttempts, retryAttempt => TimeSpan.FromSeconds(new Random().Next(5, 20))); - return invalidDocumentVersionPolicy.ExecuteAsync(action); - } + // return invalidDocumentVersionPolicy.ExecuteAsync(action); + //} public static RetryOptions ActivityRetryOptions => new RetryOptions( firstRetryInterval: TimeSpan.FromSeconds(FirstRetryInterval),