mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-27 16:25:12 +02:00
Merge pull request #381 from trustgraph-ai/fix/import-queues-not-working
Fix missing queue initialisation
This commit is contained in:
commit
7d90696ec1
4 changed files with 11 additions and 0 deletions
|
|
@ -22,6 +22,9 @@ class DocumentEmbeddingsImport:
|
||||||
pulsar_client, topic = queue, schema = DocumentEmbeddings
|
pulsar_client, topic = queue, schema = DocumentEmbeddings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async def start(self):
|
||||||
|
await self.publisher.start()
|
||||||
|
|
||||||
async def destroy(self):
|
async def destroy(self):
|
||||||
self.running.stop()
|
self.running.stop()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ class GraphEmbeddingsImport:
|
||||||
pulsar_client, topic = queue, schema = GraphEmbeddings
|
pulsar_client, topic = queue, schema = GraphEmbeddings
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async def start(self):
|
||||||
|
await self.publisher.start()
|
||||||
|
|
||||||
async def destroy(self):
|
async def destroy(self):
|
||||||
self.running.stop()
|
self.running.stop()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -160,6 +160,8 @@ class DispatcherManager:
|
||||||
queue = qconfig,
|
queue = qconfig,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
await dispatcher.start()
|
||||||
|
|
||||||
return dispatcher
|
return dispatcher
|
||||||
|
|
||||||
async def process_flow_export(self, ws, running, params):
|
async def process_flow_export(self, ws, running, params):
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,9 @@ class TriplesImport:
|
||||||
pulsar_client, topic = queue, schema = Triples
|
pulsar_client, topic = queue, schema = Triples
|
||||||
)
|
)
|
||||||
|
|
||||||
|
async def start(self):
|
||||||
|
await self.publisher.start()
|
||||||
|
|
||||||
async def destroy(self):
|
async def destroy(self):
|
||||||
self.running.stop()
|
self.running.stop()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue