Skip to content

fix: keep Playwright reload compatible on Windows - #641

Open
dajiaohuang wants to merge 1 commit into
abi:mainfrom
dajiaohuang:fix/636-windows-playwright-reload
Open

dajiaohuang wants to merge 1 commit into
abi:mainfrom
dajiaohuang:fix/636-windows-playwright-reload

Conversation

@dajiaohuang

Copy link
Copy Markdown

Fixes #636\n\nUvicorn switches to SelectorEventLoop when reload is enabled on Windows, which prevents Playwright from spawning Chromium. Configure the Proactor policy and leave Uvicorn loop setup disabled so reload keeps a subprocess-capable event loop.\n\nValidated with python -m pytest tests/test_start.py (2 passed) and python -m py_compile backend/start.py backend/tests/test_start.py.

This branch has not been deployed

No deployments
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 startup crash with asyncio NotImplementedError in Playwright

1 participant