Commit 3b07d40
committed
fix: revert CAS lck early-exit, bump outer login retries to 5
The /login early-exit added in e3c2bde caused worse failures than the
intermittent CAS hiccups it was meant to skip past — when the CAS chain
legitimately hops through a /login-shaped URL mid-redirect (which it
sometimes does even on a healthy session), the inner loop aborted
before reaching the eventual lck-bearing hop. Removed it; the chain is
now chased to completion as in dae2514.
Two small optimizations on top:
- bump login_with_retry from 3 to 5 outer attempts so the long tail of
back-to-back transient CAS rejections (which the user has historically
ridden out with ~5 retries) doesn't crash the whole run.
- when lck extraction fails, include the last 3 redirect Locations in
the RuntimeError so future failures are debuggable without rerunning
with extra prints. Also include the exception message in the outer
retry log line.1 parent e47cd5d commit 3b07d40
2 files changed
Lines changed: 27 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
46 | | - | |
47 | | - | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
| 213 | + | |
211 | 214 | | |
212 | | - | |
213 | 215 | | |
| 216 | + | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
| 221 | + | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | | - | |
| 247 | + | |
| 248 | + | |
246 | 249 | | |
247 | 250 | | |
248 | 251 | | |
| |||
0 commit comments