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: add retry and timeout for batch dml by harshachinta · Pull Request #1107 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@harshachinta

@harshachinta harshachinta commented Feb 26, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Fixes b/326596176

This PR makes the following changes

  1. allows setting retry and timeout to batch_update method. This PR feat: add support for custom timeout and retry parameters in execute_update method in transactions #251 added changes only to few methods.
  2. Add a public sample for retry and timeout. https://cloud.google.com/spanner/docs/custom-timeout-and-retry

Fixes #927

Sorry, something went wrong.

Uh oh!

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

All reactions
harshachinta added 2 commits February 26, 2024 11:27
@harshachinta
feat(spanner): add retry, timeout for batch update
d020caf
@harshachinta
feat(spanner): add samples for retry, timeout
154cdee
@harshachinta
harshachinta requested a review from a team as a code owner February 26, 2024 11:53
@harshachinta
harshachinta requested review from a team and ohmayr February 26, 2024 11:53
@snippet-bot

snippet-bot Bot commented Feb 26, 2024 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.
  • samples/samples/snippets.py:3022, tag spanner_set_custom_timeout_and_retry

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

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

@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/python-spanner API. labels Feb 26, 2024
@harshachinta
harshachinta requested a review from surbhigarg92 February 26, 2024 11:55
@harshachinta
feat(spanner): update unittest
8efa9a5
surbhigarg92
surbhigarg92 reviewed Mar 6, 2024
View reviewed changes
Comment thread samples/samples/snippets.py Resolved

Uh oh!

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

harshachinta and others added 2 commits March 6, 2024 09:05
@harshachinta
feat(spanner): update comments
74279ba
@harshachinta
Merge branch 'main' into retry_timeout_batch_dml
473f320
@harshachinta
harshachinta requested a review from surbhigarg92 March 6, 2024 09:09
@harshachinta
feat(spanner): update code for retry
b4a155d
surbhigarg92
surbhigarg92 approved these changes Mar 6, 2024
View reviewed changes
Comment thread samples/samples/snippets.py Resolved

Uh oh!

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

@harshachinta
feat(spanner): update comment
66535e1
harshachinta
harshachinta commented Mar 6, 2024
View reviewed changes
Comment thread samples/samples/snippets.py Resolved

Uh oh!

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

@harshachinta
harshachinta enabled auto-merge (squash) March 6, 2024 11:29
@harshachinta
harshachinta merged commit 4f6340b into googleapis:main Mar 6, 2024
@release-please release-please Bot mentioned this pull request Mar 6, 2024
chore(main): release 3.43.0 #1093
Merged
This was referenced Mar 31, 2026
feat(dbapi): wire timeout parameter through to execute_sql in cursor and connection googleapis/google-cloud-python#16492
Open
feat(dbapi): wire timeout parameter through Connection to execute_sql #1535
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@ohmayr ohmayr Awaiting requested review from ohmayr ohmayr is a code owner automatically assigned from googleapis/python-samples-reviewers
1 more reviewer
@surbhigarg92 surbhigarg92 surbhigarg92 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: spanner Issues related to the googleapis/python-spanner API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add sample for passing timeout and retry parameters

Uh oh!

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

2 participants

@harshachinta @surbhigarg92
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.