[core] Allow canceling/interrupting Mentat queries #125

Open
opened 2020-08-06 16:55:20 +00:00 by gburd · 0 comments
gburd commented 2020-08-06 16:55:20 +00:00 (Migrated from github.com)

One of the things @rnewman's considered is how to allow canceling or interrupting Mentat queries. He concludes that the best way to achieve this is to farm queries to separate threads. That's because SQLite doesn't allow to cancel running queries, so the way to achieve this is to just kill the thread and let SQLite's atomic commit mechanism handle clean-up, etc.

This ticket tracks experimenting with this approach, working through whatever communciation/synchronization primitives are necessary, whatever thread pooling is desired, etc.

One of the things @rnewman's considered is how to allow canceling or interrupting Mentat queries. He concludes that the best way to achieve this is to farm queries to separate threads. That's because SQLite doesn't allow to cancel running queries, so the way to achieve this is to just kill the thread and let SQLite's atomic commit mechanism handle clean-up, etc. This ticket tracks experimenting with this approach, working through whatever communciation/synchronization primitives are necessary, whatever thread pooling is desired, etc.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: greg/mentat#125
No description provided.