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 query runtime limits #6

Open
cldellow opened this issue Feb 1, 2023 · 1 comment
Open

support query runtime limits #6

cldellow opened this issue Feb 1, 2023 · 1 comment

Comments

@cldellow
Copy link
Owner

cldellow commented Feb 1, 2023

SQLite's Python interface supports interrupting long-running queries. DuckDB's C API supports this, too, but it has not yet been exposed to the Python API. See duckdb/duckdb#5938 and duckdb/duckdb#3749

A really brutal workaround: DuckDB will respond to signals... could we temporarily install a signal handler that prevents SIGINT from killing the server, but lets it percolate through to DuckDB to interrupt? That feels fragile and complex, might be easier to learn how to patch DuckDB

@curiousleo
Copy link

interrupt() is now supported in DuckDB's Python API: duckdb/duckdb#7895.
This change was released in version 0.9.0: https://github.com/duckdb/duckdb/releases/tag/v0.9.0

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

No branches or pull requests

2 participants