load/save

This commit is contained in:
Cyber MacGeddon 2025-05-02 21:02:04 +01:00
parent dddf47d161
commit 6c22444d5c
7 changed files with 51 additions and 18 deletions

View file

@ -24,7 +24,10 @@ class DocumentEmbeddingsImport:
async def destroy(self):
self.running.stop()
await self.ws.close()
if self.ws:
await self.ws.close()
await self.publisher.stop()
async def receive(self, msg):
@ -54,6 +57,8 @@ class DocumentEmbeddingsImport:
while self.running.get():
await asyncio.sleep(0.5)
await self.ws.close()
if self.ws:
await self.ws.close()
self.ws = None