Skip to content

Commit

Permalink
disable failing method
Browse files Browse the repository at this point in the history
  • Loading branch information
wisses committed Oct 31, 2023
1 parent 641d62b commit b4a5df3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 8 additions & 8 deletions Functions/Helpers/RetryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Task> action)
{
AsyncRetryPolicy invalidDocumentVersionPolicy = Policy
.Handle<FlurlHttpException>(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<Task> action)
//{
// AsyncRetryPolicy invalidDocumentVersionPolicy = Policy
// .Handle<FlurlHttpException>(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),
Expand Down

0 comments on commit b4a5df3

Please sign in to comment.