Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions samples/snippets/subscriber.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ def callback(message):


def receive_messages_with_delivery_attempts(project_id, subscription_id, timeout=None):
# [START pubsub_dead_letter_delivery_attempt]
# [START pubsub_dead_letter_delivery_attempt]
from concurrent.futures import TimeoutError
from google.cloud import pubsub_v1

Expand All @@ -616,7 +616,7 @@ def callback(message):
streaming_pull_future.result(timeout=timeout)
except TimeoutError:
streaming_pull_future.cancel()
# [END pubsub_dead_letter_delivery_attempt]
# [END pubsub_dead_letter_delivery_attempt]


if __name__ == "__main__":
Expand Down