mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-08 21:02:12 +02:00
Merge f9ce373b70 into 1ffae12559
This commit is contained in:
commit
87616e3c82
1 changed files with 10 additions and 6 deletions
|
|
@ -418,13 +418,17 @@ class Processor(AsyncProcessor):
|
||||||
self.pubsub, q, schema=schema
|
self.pubsub, q, schema=schema
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
await pub.start()
|
await pub.start()
|
||||||
|
|
||||||
# FIXME: Time wait kludge?
|
# FIXME: Time wait kludge?
|
||||||
|
# This sleep may be compensating for async startup timing in the
|
||||||
|
# underlying pubsub producer. Further investigation is needed to
|
||||||
|
# determine if it can be removed.
|
||||||
await asyncio.sleep(1)
|
await asyncio.sleep(1)
|
||||||
|
|
||||||
await pub.send(None, doc)
|
await pub.send(None, doc)
|
||||||
|
finally:
|
||||||
await pub.stop()
|
await pub.stop()
|
||||||
|
|
||||||
logger.debug("Document submitted")
|
logger.debug("Document submitted")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue