Repository navigation
v0.6.1
Feature
ms-hub download --total-timeout <seconds>andHubApi(download_total_timeout=...)set a per-file budget for a single run, overriding the environment without changing other download calls (0disables the cap).
Enhance
- Response headers on the regular download path are now bounded by
MODELSCOPE_DOWNLOAD_TIMEOUT, closing the last gap where trickling headers depended on an overall deadline to be interrupted. - Expiry messages name the budget that ran out and the variable that relaxes it (
Per-file download time budget of 900s is exhausted; raise MODELSCOPE_DOWNLOAD_TOTAL_TIMEOUT or set it to 0 to disable the limit); listing and probe budgets report their own limits instead of a generic "Download".
Fix
MODELSCOPE_DOWNLOAD_TOTAL_TIMEOUTnow defaults to0(was3600): a transfer that keeps making progress runs to completion. Idle timeouts, the low-speed watchdog and bounded retries remain the only stop conditions; set a positive value to restore the previous per-file cap.- A file stopped by an expired budget is reported as pending with its partial data kept, so a plain re-run resumes it. It was previously recorded as
FAILED, forcing--retry-failedand contradicting the "partial file saved, can continue" promise. - SDK-generated download messages are English (cancellation, deadline, low speed, length/range mismatch, listing-page timeout), so
E1001output matches the rest of the CLI.
Docs
- README: budget semantics, the
0default in the environment table, and an example capping a scheduled job at one hour.
Tests
- New coverage for header-only trickling, an uncapped steady transfer, an actionable expiry message, the CLI override, and a resumable budget stop; the configuration default assertion follows
3600 → 0.
What's Changed
- Download Time Budgets Become Opt-in by @wangxingjun778 in #78
Full Changelog: v0.6.0...v0.6.1