Commit 975bc6b
authored
feat: retry request if api returns a 429 when precaching nodes (#90)
We've had a couple of our (re)generation runs fail when precaching the
Drupal nodes due to 429s - we might as well include a basic "retry once"
attempt to help avoid this. While it's possible this could happen for
any API request it should be very unlikely except for this one which is
why I've not changed them.
In the long-run if this becomes more regular (or requested by the Drupal
team) we'll probably move to a more dedicated HTTP client implementation
to handle this across the board1 parent 7728d37 commit 975bc6b
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
0 commit comments