Commit c908ed9
committed
Retry when querying Azure Pipelines' artifacts
We encountered a problem where Azure Pipelines would return a 503. This
is obviously a transient error, and we want to be gentle and nice about
it and just retry a couple times, with a nice and easy exponential
back-off.
Sadly, `node-fetch` does not provide that functionality out of the box.
But there is a small wrapper around it that does. We just need to add
Typescript declarations, and use it, and we're all set.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 6598596 commit c908ed9
File tree
3 files changed
+28
-1
lines changed- .vscode
- src
- typings/@adobe/node-fetch-retry
3 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments