Skip to content

Fix windows subprocess hang#14

Open
Tyrin451 wants to merge 4 commits intoqualixar:mainfrom
Tyrin451:fix-windows-subprocess-hang-2750630484314797947
Open

Fix windows subprocess hang#14
Tyrin451 wants to merge 4 commits intoqualixar:mainfrom
Tyrin451:fix-windows-subprocess-hang-2750630484314797947

Conversation

@Tyrin451
Copy link
Copy Markdown

@Tyrin451 Tyrin451 commented Apr 11, 2026

Ok, I'm not expert at all with all this subprocess child (across multiple platform).
But finally I managed to fix with some AI help.

  • The "windows compatible" adaptation impact all the "subprocess.Popen"
  • There are the librarie "resource" which is UNIX only, which is replace by some psutil code.

I try to run the test, i have 75 tests which fail (may be it's ok because lot of windows side effects remaining).

Feel free to discard this PR or get inspired by the modification. I can also try to improve the modification.

google-labs-jules bot and others added 2 commits April 10, 2026 19:19
- Replaced `start_new_session=True` with `creationflags=subprocess.CREATE_NO_WINDOW` on Windows for spawning workers.
- Addressed `os.kill(..., signal.SIGTERM)` on Windows by using `taskkill /F /T /PID`.
- Handled Windows SIGTERM emulation in daemon utilizing `signal.SIGBREAK` where available.
- Modified files: `embeddings.py`, `worker_pool.py`, `reranker.py`, `daemon.py`, and `commands.py`.

Co-authored-by: Tyrin451 <223395+Tyrin451@users.noreply.github.com>
@Tyrin451 Tyrin451 changed the title Fix windows subprocess hang 2750630484314797947 Fix windows subprocess hang Apr 11, 2026
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.

1 participant