File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/WebJobs.Script.Grpc/Server Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) .NET Foundation. All rights reserved.
2
2
// Licensed under the MIT License. See License.txt in the project root for license information.
3
3
4
+ using System ;
4
5
using System . Net . Http ;
5
6
using System . Threading ;
6
7
using System . Threading . Tasks ;
@@ -41,6 +42,19 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
41
42
42
43
await Task . Delay ( currentDelay , cancellationToken ) ;
43
44
}
45
+ catch ( Exception ex )
46
+ {
47
+ if ( attemptCount == _maxRetries )
48
+ {
49
+ _logger . LogWarning ( "Reached the maximum retry count for worker request proxying. Error: {exception}" , ex ) ;
50
+ }
51
+ else
52
+ {
53
+ _logger . LogWarning ( $ "Unsupported exception type in { nameof ( RetryProxyHandler ) } . Request will not be retried. Exception: {{exception}}", ex ) ;
54
+ }
55
+
56
+ throw ;
57
+ }
44
58
}
45
59
46
60
// This should never be reached.
You can’t perform that action at this time.
0 commit comments