search-reindex-fix
This commit is contained in:
parent
435279735b
commit
e656920f7b
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
from multiprocessing import Manager
|
from multiprocessing import Manager
|
||||||
|
import threading
|
||||||
|
|
||||||
from opensearchpy import OpenSearch
|
from opensearchpy import OpenSearch
|
||||||
|
|
||||||
|
@ -53,7 +54,7 @@ class SearchService:
|
||||||
self.client = None
|
self.client = None
|
||||||
|
|
||||||
# Используем менеджер для создания Lock и Value
|
# Используем менеджер для создания Lock и Value
|
||||||
self.lock = self.manager.Lock()
|
self.lock = threading.Lock()
|
||||||
self.initialized_flag = self.manager.Value('i', 0)
|
self.initialized_flag = self.manager.Value('i', 0)
|
||||||
|
|
||||||
# Only initialize the instance if it's not already initialized
|
# Only initialize the instance if it's not already initialized
|
||||||
|
|
Loading…
Reference in New Issue
Block a user