Skip to content

v0.6.1

Choose a tag to compare

@wangxingjun778 wangxingjun778 released this 30 Oct 06:40

Feature

  • ms-hub download --total-timeout <seconds> and HubApi(download_total_timeout=...) set a per-file budget for a single run, overriding the environment without changing other download calls (0 disables 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_TIMEOUT now defaults to 0 (was 3600): 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-failed and 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 E1001 output matches the rest of the CLI.

Docs

  • README: budget semantics, the 0 default 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

Full Changelog: v0.6.0...v0.6.1