8000 < 8000 meta name="github-keyboard-shortcuts" content="repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot" data-turbo-transient="true" />
Skip to content

Fix WorkerManager.kill on Windows#3077

Merged
ahopkins merged 3 commits intosanic-org:mainfrom
gazpachoking:killpg-windows
Nov 30, 2025
Merged

Fix WorkerManager.kill on Windows#3077
ahopkins merged 3 commits intosanic-org:mainfrom
gazpachoking:killpg-windows

Conversation

@gazpachoking
Copy link
Copy Markdown
Contributor
@gazpachoking gazpachoking commented Jul 21, 2025

WorkerManager.kill was attempting to kill processes with os.killpg. This isn't available on Windows so there was a traceback every time it was called. I tried just falling back to the os.kill(process.pid, SIGKILL) but even with that it was timing out waiting for the worker process to end. Changing the signal to CTRL_C_EVENT worked though.

fix #3043

@gazpachoking gazpachoking requested a review from a team as a code owner July 21, 2025 17:23
@ahopkins ahopkins merged commit 96b96f5 into sanic-org:main Nov 30, 2025
27 checks passed
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.

WorkerManager.kill doesn't support Windows

2 participants

0