Skip to content

Commit 8b0fe97

Browse files
committed
Explicitly document delete-on-failure requirement.
Addresses: googleapis#1636 (comment) googleapis#1636 (comment)
1 parent 0b408b2 commit 8b0fe97

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

gcloud/pubsub/subscription.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,9 @@ class AutoAck(dict):
446446
Mapping, tracks messages still-to-be-acknowledged.
447447
448448
When used as a context manager, acknowledges all messages still in the
449-
mapping on `__exit__`. E.g.:
449+
mapping on `__exit__`. When processing the pulled messsages, application
450+
code MUST delete messages from the :class:`AutoAck` mapping which are not
451+
successfully processed, e.g.:
450452
451453
.. code-block: python
452454

0 commit comments

Comments
 (0)