Skip to content

Commit 6b94660

Browse files
authored
add retry context to send http invocation (#8137)
1 parent 3d25bd2 commit 6b94660

File tree

10 files changed

+583
-1
lines changed

10 files changed

+583
-1
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ jobs:
372372
inputs:
373373
targetType: 'inline'
374374
script: 'Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
375+
375376
- task: AzureKeyVault@1
376377
inputs:
377378
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -435,6 +436,11 @@ jobs:
435436
inputs:
436437
targetType: 'inline'
437438
script: 'Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
439+
- task: Npm@1
440+
displayName: 'npm ci'
441+
inputs:
442+
command: ci
443+
workingDir: sample/CustomHandlerRetry
438444
- task: AzureKeyVault@1
439445
inputs:
440446
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"bindings": [
3+
{
4+
"authLevel": "anonymous",
5+
"type": "httpTrigger",
6+
"direction": "in",
7+
"name": "req",
8+
"methods": [
9+
"get",
10+
"post"
11+
]
12+
},
13+
{
14+
"type": "http",
15+
"direction": "out",
16+
"name": "res"
17+
}
18+
]
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0",
3+
"customHandler": {
4+
"enableForwardingHttpRequest": false,
5+
"description": {
6+
"defaultExecutablePath": "node",
7+
"arguments": [ "server.js" ]
8+
}
9+
},
10+
"retry": {
11+
"strategy": "fixedDelay",
12+
"maxRetryCount": 2,
13+
"delayInterval": "00:00:00"
14+
}
15+
}

0 commit comments

Comments
 (0)