Repository navigation
Studio: stop the stall watchdog from killing Xet downloads that are still receiving data - #11594
Conversation
…till receiving data
… unrelated Popen calls
Review + GitHub Actions / UI evidencePinned head: Review
A/B on GitHub Actions (macos-14). Both sides run the same harness: a real Xet snapshot of
Studio UI. Chromium 1500x950 on a Modal CPU container, a 30 GB
Notes
|
|
Review record for #11594, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#223. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|

On a Mac the stall watchdog was killing Xet downloads that were still transferring. It judges the worker by its resident memory, and macOS compresses idle buffered pages out of that number, so a healthy transfer looked frozen and got killed. Each kill throws away the partial file.
The worker now writes the bytes it receives to a small heartbeat file. When the watchdog fires, the parent checks that file first. If bytes arrived within the stall window it re-arms the watchdog instead of killing the worker. A worker that has really stopped is still killed and retried as before.
The stall log message also said the retry would use HTTP before the retry path had picked a transport. It no longer names one.