scalar-fix
All checks were successful
Deploy on push / deploy (push) Successful in 23s

This commit is contained in:
2024-03-28 14:05:46 +03:00
parent 6f016f236d
commit e2faec5893
3 changed files with 67 additions and 63 deletions

View File

@@ -120,9 +120,10 @@ class SearchService:
await self.recreate_index()
async def recreate_index(self):
async with self.lock:
self.client.indices.delete(index=self.index_name, ignore_unavailable=True)
await self.check_index()
if self.client:
async with self.lock:
self.client.indices.delete(index=self.index_name, ignore_unavailable=True)
await self.check_index()
def index(self, shout):
if self.client: