question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hot-reloading gets stuck after interacting with multiprocessing / Twisted signals

See original GitHub issue

Checklist

  • 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
florimondmancacommented, Dec 29, 2020

@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…).

0reactions
euri10commented, May 27, 2021

seems like this is solved, closing for now !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found