Commit e176600
committed
estuary-cdk: add basic retry logic for config encryption requests
When rotating OAuth2 tokens, a task can end up with a broken config if
the token exchange succeeds, invalidates all previous tokens, then the
connector fails to emit a `configUpdate` event. To guard against this
failure mode a little, very basic retry logic was added for when the
config encryption service experiences transient failures.
I haven't observed any config encryption failures in the wild, but it's
feasible something could happen causing Google Cloud Run to temporarily
be down.1 parent 634487e commit e176600
1 file changed
+24
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
181 | 204 | | |
182 | 205 | | |
183 | 206 | | |
| |||
0 commit comments