Commit b1bc331
Avatarsia
fix(woocommerce): catch SKU-lookup exceptions per chunk in stock sync
ImportSendListLager() wraps the per-chunk batch POSTs in try/catch but
the upstream SKU-to-ID lookup was bare: a single failing lookup chunk
(timeout, 5xx, rate-limit) aborted the whole sync before the unaffected
remaining chunks could even be processed. That gave the batch refactor
a larger failure domain than the pre-#266 per-item path it replaced.
Lookup exceptions are now logged at error level and the loop continues
with the next chunk. Items missing from the SKU map are already handled
downstream (logged as not-found, skipped from the update batches).
Spotted by review of #266.1 parent 6a71d4b commit b1bc331
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
628 | 636 | | |
629 | 637 | | |
630 | 638 | | |
| |||
0 commit comments