Fix JS upload worker shutdown#1555
Conversation
Greptile SummaryThis PR fixes a bug where concurrent upload workers continued dispatching new chunks after an initial chunk failure, causing spurious background requests and post-rejection progress callbacks. The fix is applied consistently across the Node, React Native, and Web/Console SDK templates.
Confidence Score: 4/5Safe to merge — the changes are small, targeted, and do not alter the happy-path upload flow. The logic is correct in all three templates. The No files require special attention, though verifying the generated SDK output via Important Files Changed
Reviews (1): Last reviewed commit: "Stop JS upload workers after chunk failu..." | Re-trigger Greptile |
What
Why
Greptile flagged that concurrent workers could keep draining queued chunks after the caller had already received a failure, causing extra background requests and possible progress callbacks after rejection.
Verification