-
Notifications
You must be signed in to change notification settings - Fork 95
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
feat(python/adbc_driver_manager): handle KeyboardInterrupt #1509
Conversation
TODOS
|
CC @zeroshade @mariusvniekerk how awful is this? 😅 |
python/adbc_driver_manager/adbc_driver_manager/_blocking_impl.cc
Outdated
Show resolved
Hide resolved
python/adbc_driver_manager/adbc_driver_manager/_blocking_impl.cc
Outdated
Show resolved
Hide resolved
if threading.current_thread() is not threading.main_thread(): | ||
return func(*args, **kwargs) | ||
|
||
_init_blocking_call() |
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.
Does the rest of the body want to be in a mutex? Or are we going to trust the current_thread check?
7856659
to
cead49d
Compare
I still need to fix this on Windows but I'll have to set up a development environment again |
05b5fed
to
9245195
Compare
Hmm, I'm unable to reproduce the error in the Conda builds. |
If this doesn't work then I'm simply going to disable the feature altogether on Windows. |
Alternative to #1486.
Fixes #1484.