Commit e06423d
committed
fix(core): cap retries for unprocessed requests in addRequestsBatched
When the request queue permanently rejects a request (e.g. a 400 from the
platform batch-add API for a malformed `userData` shape), the recursive
helper kept resubmitting the unprocessed requests forever, hanging the
crawler with no actionable error.
Bound the recursion to a small number of consecutive no-progress attempts;
once exhausted, the remaining unprocessed requests are skipped with a
warning. Any progress resets the counter so transient backpressure is still
retried.
Closes #37641 parent 1fe3e7c commit e06423d
2 files changed
Lines changed: 49 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
472 | 478 | | |
473 | 479 | | |
474 | 480 | | |
475 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
476 | 486 | | |
477 | 487 | | |
478 | 488 | | |
479 | 489 | | |
480 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
481 | 504 | | |
482 | 505 | | |
483 | 506 | | |
| |||
486 | 509 | | |
487 | 510 | | |
488 | 511 | | |
| 512 | + | |
489 | 513 | | |
490 | 514 | | |
491 | 515 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
281 | 305 | | |
282 | 306 | | |
283 | 307 | | |
| |||
0 commit comments