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

SQLite objects created in a thread can only be used in that same thread #10

Open
hoxbro opened this issue Jul 13, 2023 · 0 comments
Open

Comments

@hoxbro
Copy link
Member

hoxbro commented Jul 13, 2023

When running the connector in a panel app with panel serve --num-threads 2 app.py, I got the following error: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139771783407360 and this is thread id 139771770820352

This should be possible to use an annotator across multiple threads. There is an option to disable this warning with check_same_thread ref. Though I'm leaning towards always creating a new connection when using the database to also avoid sqlite is in use errors.

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

1 participant