PubSub: Force push a batch of messages #9906
Labels
api: pubsub
Issues related to the Pub/Sub API.
type: question
Request for information or clarification. Not an issue.
Is your feature request related to a problem? Please describe.
Hi,
I have a simple publish for loop:
with some callback (-> I don't wait until the future is returned). The problem is that when the last batch of data is being created, the process terminates earlier than it's being sent (<MAX_LATENCY), missing some last messages.
Could there be a way of something like
publisher.join()
orpublisher.force_push()
to make sure that all messages are sent before the process terminates?Related:
The text was updated successfully, but these errors were encountered: