You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If i'm not mistaken, there's a limit (1000?) on the api side for the number of messages published in a single call.
I have implemented a class like MaxMessagesBatch but I was thinking it could be directly implemented in gcloud.
Activity
daspecster commentedon Sep 22, 2016
By committing do you mean publishing a message?
From https://googlecloudplatform.github.io/google-cloud-python/stable/pubsub-usage.html#publish-messages-to-a-topic
@tseaver could something like this be done?
dhermes commentedon Sep 22, 2016
@tcroiset It makes sense, though in this case you probably would rather use it outside of a context manager, e.g.
NOTE: There is no
batch.begin()to call, as can be seen by the context manager implementation.NOTE: Calling
batch.commit()at the end is to do any clean-up if necessary, but if there are no unpublished messagescommit()will do nothing.tseaver commentedon Sep 23, 2016
ISTM that @tcroiset was asking for something like:
tcroiset commentedon Sep 29, 2016
Indeed.
If i'm not mistaken, there's a limit (1000?) on the api side for the number of messages published in a single call.
I have implemented a class like MaxMessagesBatch but I was thinking it could be directly implemented in gcloud.
tseaver commentedon Oct 12, 2016
@tcroiset FWIW the API docs (JSON | gRPC) don't mention any limit.
tcroiset commentedon Oct 18, 2016
@tseaver It is mentioned here: https://cloud.google.com/pubsub/quotas
chore(main): release 1.24.1 (#2382)
refactor: fix some aggregation ops in the sqlglot compiler (#2382)