GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — feat: add flow control for message publishing by plamut · Pull Request #96 · googleapis/python-pubsub
This repository was archived by the owner on Oct 13, 2026. It is now read-only.
Conversation
|
|
I added support for multithreaded Things left:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@pradn Do you have anything to add here, or are we good to merge? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| error_msg = "Flow control limits too low for the message - {}.".format( | ||
| load_info | ||
| ) | ||
| raise exceptions.PermanentlyBlockedError(error_msg) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
"WouldPermanentlyBlockError" makes more sense, because it's not already permanently blocked.
Even better, I think we can simply omit the details about blocking and say something more generic: FlowControlMessageTooLargeError
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I will rename the exception.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I eventually opted for the generic FlowControlLimitError for a few reasons:
FlowControlMessageTooLargeError could be confusing, as there already exists a similarly named MessageTooLargeError for the messages that would exceed the limits on the backend.FlowControlLimitsError would semantically still be correct.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@pradn If there's nothing else left, please just give an approval to unblock the merge, thanks! :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
## [1.6.0](https://www.github.com/googleapis/python-pubsub/compare/v1.5.0...v1.6.0) (2020-06-09) ### Features * Add flow control for message publishing ([#96](https://www.github.com/googleapis/python-pubsub/issues/96)) ([06085c4](https://www.github.com/googleapis/python-pubsub/commit/06085c4083b9dccdd50383257799904510bbf3a0)) ### Bug Fixes * Fix PubSub incompatibility with api-core 1.17.0+ ([#103](https://www.github.com/googleapis/python-pubsub/issues/103)) ([c02060f](https://www.github.com/googleapis/python-pubsub/commit/c02060fbbe6e2ca4664bee08d2de10665d41dc0b)) ### Documentation - Clarify that Schedulers shouldn't be used with multiple SubscriberClients ([#100](#100)) ([cf9e87c](cf9e87c)) - Fix update subscription/snapshot/topic samples ([#113](#113)) ([e62c38b](e62c38b)) ### Internal / Testing Changes - Re-generated service implementaton using synth: removed experimental notes from the RetryPolicy and filtering features in anticipation of GA, added DetachSubscription (experimental) ([#114](#114)) ([0132a46](0132a46)) - Incorporate will_accept() checks into publish() ([#108](#108)) ([6c7677e](6c7677e))
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
PubSub Publisher 504 Deadline Exceeded when sending bulk messages Pubsub: Consider a blocking publisher to prevent OOMing
There was an error while loading. Please reload this page.