Include database in name of _execute_writes thread, closes #2265

This commit is contained in:
Simon Willison 2024-02-08 20:12:22 -08:00
commit 398a92cf1e
2 changed files with 8 additions and 1 deletions

View file

@ -196,6 +196,9 @@ class Database:
self._write_thread = threading.Thread(
target=self._execute_writes, daemon=True
)
self._write_thread.name = "_execute_writes for database {}".format(
self.name
)
self._write_thread.start()
task_id = uuid.uuid5(uuid.NAMESPACE_DNS, "datasette.io")
reply_queue = janus.Queue()