mirror of
https://github.com/simon987/sist2.git
synced 2025-12-14 07:49:06 +00:00
Fix #415, fix sqlite-index error
This commit is contained in:
@@ -243,7 +243,7 @@ class Sist2:
|
||||
self.bin_path = bin_path
|
||||
self._data_dir = data_directory
|
||||
|
||||
def index(self, options: IndexOptions, search_backend: Sist2SearchBackend, logs_cb):
|
||||
def index(self, options: IndexOptions, search_backend: Sist2SearchBackend, logs_cb, set_pid_cb):
|
||||
|
||||
args = [
|
||||
self.bin_path,
|
||||
@@ -255,6 +255,8 @@ class Sist2:
|
||||
logs_cb({"sist2-admin": f"Starting sist2 command with args {args}"})
|
||||
proc = Popen(args, stdout=PIPE, stderr=PIPE)
|
||||
|
||||
set_pid_cb(proc.pid)
|
||||
|
||||
t_stderr = Thread(target=self._consume_logs_stderr, args=(logs_cb, proc))
|
||||
t_stderr.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user