Skip to content

Limit model blob downloads to three hours - #1007

Merged
bmehta001 merged 4 commits into
mainfrom
bmehta001/model-download-timeout-docs
Aug 17, 2026
Merged

Limit model blob downloads to three hours#1007
bmehta001 merged 4 commits into
mainfrom
bmehta001/model-download-timeout-docs

Conversation

@bmehta001

@bmehta001 bmehta001 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a fixed three-hour deadline to each Azure blob transfer used by Model.Download.
  • Preserve explicit progress-callback cancellation as OPERATION_CANCELLED; report deadline expiry as a network timeout.
  • Briefly document that streaming cancellation is cooperative and non-streaming inference runs to completion.
  • Remove the overbroad C# claim that every operation supports CancellationToken.

Validation

  • Compiled blob_downloader.cc directly with MSVC.
  • git diff --check passes.

Prevent stalled Azure blob transfers from running indefinitely while preserving explicit callback cancellation. Document the current inference cancellation limits and remove an overbroad C# cancellation claim.

Files changed:
- README.md
- sdk_v2/cpp/src/download/blob_downloader.cc
- sdk_v2/cs/README.md

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 16cc8b6f-2bc4-4469-bf59-f21439569349
@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
foundry-local Ready Ready Preview Aug 17, 2026 7:19pm

Request Review

Copilot AI balanced review requested due to automatic review settings August 17, 2026 18:56
Avoid an unnecessary source-line break in the short cancellation limitation.

Files changed:
- README.md

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 16cc8b6f-2bc4-4469-bf59-f21439569349

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a three-hour deadline to model blob downloads and clarifies cancellation behavior.

Changes:

  • Applies a shared three-hour deadline per blob.
  • Distinguishes callback cancellation from timeout failures.
  • Updates cancellation documentation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
sdk_v2/cpp/src/download/blob_downloader.cc Adds deadline and timeout error mapping.
sdk_v2/cs/README.md Corrects the async API claim.
README.md Documents inference cancellation behavior.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sdk_v2/cpp/src/download/blob_downloader.cc
Comment thread README.md Outdated
Correct the cancellation documentation to reflect existing Request.Cancel support and the remaining cooperative/no-deadline limitations. Add focused regression coverage for timeout versus explicit-cancellation error classification without expanding production timeout plumbing.

Files changed:
- README.md
- sdk_v2/cpp/test/internal_api/download_test.cc

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 16cc8b6f-2bc4-4469-bf59-f21439569349
Keep the release change limited to the production deadline and concise documentation rather than adding test-only timeout machinery.

Files changed:
- sdk_v2/cpp/test/internal_api/download_test.cc

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 16cc8b6f-2bc4-4469-bf59-f21439569349

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@bmehta001
bmehta001 enabled auto-merge (squash) August 17, 2026 19:21
@bmehta001 bmehta001 self-assigned this Aug 17, 2026
@bmehta001
bmehta001 merged commit b81b094 into main Aug 17, 2026
60 checks passed
@bmehta001
bmehta001 deleted the bmehta001/model-download-timeout-docs branch August 17, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants