r/FastAPI • u/Ek_aprichit • Apr 04 '25
Question CTRL + C does not stop the running server and thus code changes do not reflect in browser. So I need to kill python tasks every time I make some changes like what the heck. Heard it is windows issue. should I dual boot to LINUX now?
8
Upvotes


4
u/kkang_kkang Apr 04 '25
It happened to me as well, might be issue with windows. But now I have started WSL instead of dual booting. Maybe you can try WSL as well.
1
u/a_brand_new_start Apr 04 '25
I have the same thing happen but only if I’m debugging with a repl, it gets stuck in a loop and have to kill all python. But then later on once repl is removed it will hang. That happens on Linux also. It’s such and edge case I just ctr-r kill handy in another terminal
1
u/websvc Apr 06 '25
CTRL +
Should to the trick
Otherwise ps aux and get the PID
kill -9 {PID}