Skip to content

Keep Windows downloads running when the Models panel polls - #30

Open
dd3ok wants to merge 1 commit into
neuregex:mainfrom
dd3ok:fix/windows-download-polling
Open

dd3ok wants to merge 1 commit into
neuregex:mainfrom
dd3ok:fix/windows-download-polling

Conversation

@dd3ok

@dd3ok dd3ok commented Dec 1, 2026

Copy link
Copy Markdown

Fixes #28.

The gateway checks a download PID on each status poll. On Windows, the signal-zero check interrupted a live download. Poll a waitable process handle with a zero timeout on Windows, close the handle after each check, and retain the POSIX process and start-time checks.

Verified on Windows with CPython 3.12 using the production downloader, the gateway's GET /freefield/downloads route, and a throttled local HTTP fixture serving a 2 MiB file. The gateway and downloader shared an isolated console.

Revision Result after four polls
b9540bc (main) Worker exited with 0xC000013A. Final status was stopped, and no completed file was present.
This change All four polls returned running, then the job reached done. The 2,097,152-byte file matched the fixture byte for byte.

The Linux gateway and download integration tests also passed on the patch. The native Windows integration suite has a separate POSIX-mode assertion failure, tracked in #29. This change targets current main. The v1.0 tag predates this status route.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T00:33:21.706275Z da481a7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Windows: Models panel downloads die with KeyboardInterrupt (os.kill(pid, 0) sends Ctrl+C)

1 participant