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

Support Ctrl+C to cancel a running query in the Influx CLI #6563

Closed
jsternberg opened this issue May 5, 2016 · 1 comment
Closed

Support Ctrl+C to cancel a running query in the Influx CLI #6563

jsternberg opened this issue May 5, 2016 · 1 comment

Comments

@jsternberg
Copy link
Contributor

The Influx CLI does not allow you to use Ctrl+C to cancel a running query. We should catch the signal and close the connection on the client side.

This may require a change to the Go client API.

@ghost
Copy link

ghost commented Jul 12, 2017

Hi, I've been working on this the last couple of days. I have arrived at a solution using the context package. There was a small change on the client code to add a function "QueryWithContext". The solution is working
(main changes can be seen on my fork: emluque@d353e41 )but I'm still writing some tests, the whole thing should be done by end of week. I will then issue a pull request, I just wanted to claim the issue, since my solution is almost done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants