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

#798: Add support for auto-acknowledging pulled messages. #1636

Merged
merged 4 commits into from
Jul 14, 2016
Merged

#798: Add support for auto-acknowledging pulled messages. #1636

merged 4 commits into from
Jul 14, 2016

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Mar 18, 2016

Follows @tmatsuo's suggested implementation.

Closes #798.

Hold off merging until comparing with the alternate implementation suggested by @jgeewax. (#1637)

@tseaver tseaver added do not merge Indicates a pull request not ready for merge, due to either quality or timing. api: pubsub Issues related to the Pub/Sub API. labels Mar 18, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 18, 2016
@@ -272,3 +272,30 @@ Fetch messages for a pull subscription without blocking (none pending):
>>> messages = [recv[1] for recv in received]
>>> [message.message_id for message in messages]
[]

Fetch pending messages, acknowledging those whose processing doesn't raise an

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f40c398 on tseaver:798-tmatsuo_strategy into 98edc64 on GoogleCloudPlatform:master.

... batch.publish('this is the second message_payload',
... attr1='value1', attr2='value2')
>>> from gcloud.pubsub.subscription import AutoAck
>>> with AutoAck(subscription, max_messages=10) as ack:

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jul 11, 2016
@daspecster
Copy link
Contributor

LGTM, I don't really have the whole story for this though.

@tseaver
Copy link
Contributor Author

tseaver commented Jul 14, 2016

Rebased to pick up pylint fixes on master. I will merge when Travis passes.

@tseaver tseaver merged commit c618091 into googleapis:master Jul 14, 2016
@tseaver tseaver deleted the 798-tmatsuo_strategy branch July 14, 2016 15:59
This was referenced Aug 3, 2016
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 Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants