This commit is contained in:
AI-Bot 2026-05-08 01:15:23 +08:00 committed by GitHub
commit 87616e3c82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -418,14 +418,18 @@ class Processor(AsyncProcessor):
self.pubsub, q, schema=schema
)
await pub.start()
try:
await pub.start()
# FIXME: Time wait kludge?
await asyncio.sleep(1)
# 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 pub.send(None, doc)
await pub.stop()
await pub.send(None, doc)
finally:
await pub.stop()
logger.debug("Document submitted")