-
Notifications
You must be signed in to change notification settings - Fork 288
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
Handle SIGINT to abort hanging queries in ValidateBuilderExists #2214
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: sagnik3788 <[email protected]>
Signed-off-by: sagnik3788 <[email protected]>
Signed-off-by: sagnik3788 <[email protected]>
Signed-off-by: sagnik3788 <[email protected]>
@natalieparellano, any idea why |
@sagnik3788 I'm seeing |
Linux machine @natalieparellano |
sigChan := make(chan os.Signal, 1) | ||
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably want a separate implementation of this for linux/darwin and windows. This can be accomplished with separate files, such as signal_unix.go and signal_windows.go, and build tags as shown here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 with this comment
Summary
Fix
ValidateBuilderExists
function to handle SIGINT signals. This update ensures that interrupted hanging queries gracefully abort, returning an "operation aborted" errorBefore
Crtl+C does not abort hanging query
After
operation aborted
Resolves #1242