reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Can't stop a Reflex Run Command Windows

Open Harshit28j opened this issue 1 year ago • 3 comments

Currently, when I use Reflex in my Windows terminal, the terminal gets stuck. It doesn't matter if I press Ctrl + C or Ctrl + Z; it won't stop.

So, I opened another terminal to stop or rerun the process, but it started on a different port number, which makes sense. However, I think it should prompt before doing so.

Additionally, adding a command to stop the process would be great for Windows users. This way, we could use reflex stop to terminate the process, also if we could fix that then it would be better as well

image

Harshit28j avatar Aug 15 '24 14:08 Harshit28j

It seems like a bug we'll look into it.

Alek99 avatar Aug 20 '24 20:08 Alek99

I tried to reproduce this but couldn’t. With reflex version 0.5.10, I killed the process using Ctrl + C. Which version do you use?

PeterYusuke avatar Sep 19 '24 09:09 PeterYusuke

One thing that might solve this is to use signal with signal.CTRL_BREAK_EVENT to kill the all process.

reference https://docs.python.org/3/library/signal.html#signal.CTRL_C_EVENT

PeterYusuke avatar Sep 27 '24 11:09 PeterYusuke

Closing as it's stale

adhami3310 avatar Feb 05 '25 02:02 adhami3310