Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not interrupt rasa run server by Ctrl+C on winodws #4118

Closed
XiaofeiQian opened this issue Jul 29, 2019 · 9 comments
Closed

Can not interrupt rasa run server by Ctrl+C on winodws #4118

XiaofeiQian opened this issue Jul 29, 2019 · 9 comments
Labels
type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@XiaofeiQian
Copy link
Contributor

Rasa version:
1.1.8

Python version:
Python 3.6
Operating system (windows, osx, ...):
Windows 10 1903
Issue:

Can not interrupt rasa run server by Ctrl+C on winodws immediately, after I send something to the server, it raise KeyboardInterrupt. can it be Interrupt immediately by Ctrl+C ?

Maybe we need something like :

try:
    tornado.ioloop.IOLoop.instance().start()
except KeyboardInterrupt:
    tornado.ioloop.IOLoop.instance().stop()

https://stackoverflow.com/questions/17101502/how-to-stop-the-tornado-web-server-with-ctrlc

Thanks!

@XiaofeiQian XiaofeiQian added the type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jul 29, 2019
@msamogh
Copy link
Contributor

msamogh commented Jul 29, 2019

Thanks for raising this issue, @tabergma will get back to you about it soon.

@mohankumargx
Copy link

@hatunemiku You can use Ctrl+Pause to interrupt

@tabergma
Copy link
Contributor

tabergma commented Aug 6, 2019

@hatunemiku Does Ctrl+Pause work for you? We are using a Sanic server. There seems to be an ongoing discussion around that topic (sanic-org/sanic#108).

@XiaofeiQian
Copy link
Contributor Author

@tabergma Ctrl+Pause not work for me at 1.1.8 just like Ctrl+C .

@tabergma
Copy link
Contributor

tabergma commented Aug 6, 2019

@hatunemiku Are you willing to invest some time and check how the problem could be solved? The server is started here: https://github.com/RasaHQ/rasa/blob/master/rasa/core/run.py#L186

@XiaofeiQian
Copy link
Contributor Author

I've tried again using Ctrl+Pause, which actually works fine in cmd, but doesn't work in the cmd of the terminal of vscode. And it looks like this is a bug in vscode-python microsoft/vscode-python#4100.

@mohankumargx @tabergma Thanks!

@TQuy
Copy link

TQuy commented Jan 4, 2020

I have exactly the same issue, I even tried to reset my window but it doesn't solve the problem

@atabou
Copy link

atabou commented Jun 5, 2020

I have this issue too. ctrl + c does not stop the server.

@nkabram
Copy link

nkabram commented Jul 8, 2020

I have the same issue running rasa action server on windows powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug 🐛 Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

7 participants