GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(pubsub): add delivery attempt property to message object received by user code by pradn · Pull Request #10205 · googleapis/google-cloud-python

Conversation

@pradn

@pradn pradn commented Jan 24, 2020

Copy link
Copy Markdown
Contributor
  • Exposes the delivery-attempt counter for a message.
  • Add tests for plumbing + message property.
  • In the future, we should modify the system test test_creating_subscriptions_with_non_default_settings or create a new one to test setting a dead letter policy on a subscription. Such a modification would make the test fail now since DLQ isn't enabled for all projects. (Only a DLQ-enabled project would pass the modified test.)

Fixes #10161

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pradn
pradn requested review from anguillanneuf and plamut as code owners January 24, 2020 22:29
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 24, 2020
@pradn
pradn requested a review from maheshgattani January 24, 2020 22:29
maheshgattani
maheshgattani reviewed Jan 24, 2020
View reviewed changes
Comment thread pubsub/google/cloud/pubsub_v1/subscriber/message.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@plamut plamut added the api: pubsub Issues related to the Pub/Sub API. label Jan 29, 2020
plamut
plamut reviewed Jan 30, 2020
View reviewed changes

@plamut plamut left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks good, with the same thought on maybe returning None if delivery attempt is not applicable for a particular message.

Oh, and the commit message to make the linter happy. :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pradn
feat(pubsub): add delivery attempt property to message obj received b…
778146b
…y user code
@pradn
pradn force-pushed the dlq branch from a810ec4 to 778146b Compare January 30, 2020 16:29
@pradn
Return None instead of zero when delivery_attempt has not been set.
317a8ff
@pradn
pradn removed the request for review from anguillanneuf January 30, 2020 17:53
plamut
plamut approved these changes Jan 30, 2020
View reviewed changes

@plamut plamut left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
maheshgattani
maheshgattani approved these changes Jan 30, 2020
View reviewed changes
Comment thread pubsub/google/cloud/pubsub_v1/subscriber/message.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@pradn
Modify comment to address Mahesh's comment.
e5db3a3
@pradn
pradn merged commit c3b9327 into googleapis:master Jan 30, 2020
@pradn
pradn deleted the dlq branch January 30, 2020 22:03
This was referenced Jan 31, 2020
[CHANGE ME] Re-generated automl to pick up changes in the API or client library generator. #10285
Closed
[CHANGE ME] Re-generated bigquery_datatransfer to pick up changes in the API or client library generator. #10286
Closed
[CHANGE ME] Re-generated bigtable to pick up changes in the API or client library generator. #10287
Closed
[CHANGE ME] Re-generated billingbudgets to pick up changes in the API or client library generator. #10288
Closed
[CHANGE ME] Re-generated cloudbuild to pick up changes in the API or client library generator. #10289
Closed
[CHANGE ME] Re-generated datacatalog to pick up changes in the API or client library generator. #10290
Closed
[CHANGE ME] Re-generated firestore to pick up changes in the API or client library generator. #10291
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10292
Closed
[CHANGE ME] Re-generated iot to pick up changes in the API or client library generator. #10293
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10294
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10295
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10296
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10297
Closed
[CHANGE ME] Re-generated spanner to pick up changes in the API or client library generator. #10298
Closed
This was referenced Feb 2, 2020
[CHANGE ME] Re-generated translate to pick up changes in the API or client library generator. #10320
Closed
[CHANGE ME] Re-generated bigquery_datatransfer to pick up changes in the API or client library generator. #10328
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10329
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10330
Closed
[CHANGE ME] Re-generated kms to pick up changes in the API or client library generator. #10331
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10332
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10333
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10334
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10335
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10336
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10339
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10340
Closed
[CHANGE ME] Re-generated iot to pick up changes in the API or client library generator. #10341
Closed
[CHANGE ME] Re-generated irm to pick up changes in the API or client library generator. #10342
Closed
[CHANGE ME] Re-generated kms to pick up changes in the API or client library generator. #10343
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10344
Closed
[CHANGE ME] Re-generated monitoring to pick up changes in the API or client library generator. #10345
Closed
[CHANGE ME] Re-generated dataproc to pick up changes in the API or client library generator. #10349
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10350
Closed
[CHANGE ME] Re-generated irm to pick up changes in the API or client library generator. #10351
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10352
Closed
[CHANGE ME] Re-generated phishingprotection to pick up changes in the API or client library generator. #10353
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10354
Closed
[CHANGE ME] Re-generated asset to pick up changes in the API or client library generator. #10359
Closed
[CHANGE ME] Re-generated grafeas to pick up changes in the API or client library generator. #10360
Closed
[CHANGE ME] Re-generated language to pick up changes in the API or client library generator. #10361
Closed
[CHANGE ME] Re-generated oslogin to pick up changes in the API or client library generator. #10362
Closed
[CHANGE ME] Re-generated recommender to pick up changes in the API or client library generator. #10363
Closed
[CHANGE ME] Re-generated tasks to pick up changes in the API or client library generator. #10364
Closed
parthea pushed a commit that referenced this pull request Mar 2, 2026
@pradn
feat(pubsub): add delivery attempt property to message object receive…
9848ce8
…d by user code (#10205)

- Return None when a DeadLetterPolicy hasn't been set on the subscription.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@maheshgattani maheshgattani maheshgattani approved these changes
@plamut plamut plamut approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: pubsub Issues related to the Pub/Sub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

pubsub: add support for dead letter topics

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@pradn @maheshgattani @plamut @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.