Skip to content

Add query timeout option to interrupt long-running queries#209

Draft
penberg wants to merge 1 commit intomainfrom
query-timeout
Draft

Add query timeout option to interrupt long-running queries#209
penberg wants to merge 1 commit intomainfrom
query-timeout

Conversation

@penberg
Copy link
Contributor

@penberg penberg commented Mar 7, 2026

A single background tokio task with a min-heap manages all query deadlines efficiently. When a query starts, a TimeoutGuard is acquired; if the deadline expires before the guard is dropped, the connection is interrupted via sqlite3_interrupt().

A single background tokio task with a min-heap manages all query
deadlines efficiently. When a query starts, a TimeoutGuard is
acquired; if the deadline expires before the guard is dropped,
the connection is interrupted via sqlite3_interrupt().
@penberg penberg marked this pull request as draft March 7, 2026 09:03
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

Successfully merging this pull request may close these issues.

1 participant