Handle SIGINT to abort hanging queries in ValidateBuilderExists#2214
Handle SIGINT to abort hanging queries in ValidateBuilderExists#2214sagnik3788 wants to merge 4 commits intobuildpacks:mainfrom
Conversation
Signed-off-by: sagnik3788 <sagnikdas5432@gmail.com>
Signed-off-by: sagnik3788 <sagnikdas5432@gmail.com>
|
@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.
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.
|
Hi @sagnik3788 Do you have some time to address this comment from Natalie? |
Summary
Fix
ValidateBuilderExistsfunction 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