mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 11:41:02 +02:00
load/save
This commit is contained in:
parent
dddf47d161
commit
6c22444d5c
7 changed files with 51 additions and 18 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue