Commit f4a6d21
committed
Retry CreateOnGithubJob on GitHub auth 401s
Deployment/status creation surfaces transient Octokit::Unauthorized when a
GitHub installation token is rejected or still propagating. CommitDeployment#create_on_github!
only rescues NotFound/Forbidden, so the 401 escaped the job unhandled and
reopened the Observe issue.
Add retry_on Octokit::Unauthorized to CreateOnGithubJob with polynomially_longer
backoff and attempts: 6 (~15m window) so transient auth failures settle before
giving up. On exhaustion, log and do not re-raise, matching the existing
NotFound/Forbidden give-up behavior. No token cache or client changes.
Fixes shop/issues#88011 parent 3b20110 commit f4a6d21
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
| 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 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments