Hot-reloading gets stuck after interacting with multiprocessing / Twisted signals
See original GitHub issueChecklist
- The bug is reproducible against the latest release and/or
master
. - There are no similar issues or pull requests to fix it yet.
Describe the bug
Launched with --reload
option gets stuck after executing code that interacts with multiprocessing. More details below.
To reproduce
I prepared a minimal build to reproduce this error: https://github.com/desprit/uvicorn_reload_test
Expected behavior
Uvicorn restarts.
Actual behavior
Uvicorn get’s stuck with message WARNING: Detected file change in...
Environment
v0.12.2
uvicorn main:app --reload
Additional context
I tested it with hypercorn and hot reloading doesn’t break there. Did also tests with Flask + Gunicorn, works well there as well.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
is twisted incompatible with multiprocessing events and ...
The short answer is yes, Twisted and multiprocessing are not compatible with each other, and you cannot reliably use them as you are...
Read more >Untitled
204 116 guess letter is guessed done your die you win! 2 You lost. now bear is after you! 2 press stop sign...
Read more >Bug listing with status UNCONFIRMED as at 2022/12/21 18 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >Modern System-on-Chip Design on Arm - NET
Our goal is to remove and replace non-inclusive language from our vocabulary to reflect our values and represent our global ecosystem. Arm is...
Read more >Problem Solving and Troubleshooting in AIX 5L - IBM Redbooks
This redbook covers problem determination and troubleshooting on the IBM. ^ pSeries and RS/6000 platform. It is intended as a guide to the....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@desprit I updated the issue title slightly, to me it looks like it contains appropriate keywords for a variety of entry points into this issue (hot reload being blocked, multiprocessing code, signals, Twisted…).
seems like this is solved, closing for now !