-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feature request - quit esql query by interrupt windows powershell #2758
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
Comments
Hello, I'm unable to reproduce. Using this snippet: import os
from elasticsearch import Elasticsearch
client = Elasticsearch(
"http://localhost:9200", api_key=os.environ["ES_LOCAL_API_KEY"], request_timeout=60
)
print(client.info())
print("esql")
client.esql.query(query="FROM kibana_sample_data_ecommerce") I then ran Elasticsearch with start-local and loaded the sample ecommerce data in Kibana. I then Ctrl-C as soon as I see "esql" and get a
|
Tank for this feedback, I tested now inside WSL and there it works just great. But I'm unable to get it to work in windows, I believe I have a plain powershell shell |
Ah, that makes sense, thank you. This isn't specific to this library, though, but is a more general issue with Powershell and Python: https://stackoverflow.com/questions/42039231/ctrl-c-for-quitting-python-in-powershell-now-not-working |
I find it hard to work on large indexes, seems like I'm unable to interrupt a query once it has fired.
But I'm unable to get <ctrl+c> or any interrupt to work:
I get
KeyboardInterrupt
only after the query has returned after 23secAnd setting the request_timeout will exit if it reached the value.
A way to quit it at anytime would be nice.
The text was updated successfully, but these errors were encountered: