Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: remove graceful streaming pull shutdown #315

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

anguillanneuf
Copy link
Contributor

@anguillanneuf anguillanneuf commented Mar 10, 2021

Reverts #292

Release 2.4.0 which contains this feature has been yanked from PyPi: https://pypi.org/project/google-cloud-pubsub/

Graceful streaming pull shutdown introduces an optional wait on callbacks on streaming pull futures. It would otherwise break the streaming pull future returned by the Pub/Sub Lite subscriber client. See googleapis/python-pubsublite#95

@anguillanneuf anguillanneuf requested a review from a team as a code owner March 10, 2021 01:14
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Mar 10, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 10, 2021
@anguillanneuf anguillanneuf changed the title Revert "feat: add graceful streaming pull shutdown" fix: remove graceful streaming pull shutdown Mar 10, 2021
@busunkim96 busunkim96 changed the title fix: remove graceful streaming pull shutdown revert: remove graceful streaming pull shutdown Mar 10, 2021
@busunkim96
Copy link
Contributor

@anguillanneuf Sorry to edit the title on you again.

I checked the conventional commit spec and it turns out there's a revert: type. 😄
https://www.conventionalcommits.org/en/v1.0.0/#how-does-conventional-commits-handle-revert-commits aaand release-please knows what to do with it. https://github.com/googleapis/release-please/blob/d8ac96721de299f89fb435dc1650bf5d7dce8857/src/releasers/python.ts#L35

@anguillanneuf anguillanneuf merged commit 16bf588 into master Mar 10, 2021
@anguillanneuf anguillanneuf deleted the revert-292-iss-276 branch March 10, 2021 01:42
plamut added a commit that referenced this pull request Mar 10, 2021
plamut added a commit that referenced this pull request Mar 24, 2021
* Revert "revert: add graceful streaming pull shutdown (#315)"

This reverts commit 16bf588.

* Move await_msg_callbacks to subscribe() method

This is to keep the StreamingPullFuture's surface intact for
compatibility with PubSub Lite client.

* Make streaming pull close() method non-blocking

* Add a blocking streaming pull shutdown sample

* Refine docs on awaiting callbacks on shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/python-pubsub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants