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

chore(docs): improve write_batch async sample #966

Merged
merged 3 commits into from
May 29, 2024

Conversation

daniel-sanche
Copy link
Contributor

  • fix missing await in async write_batch sample
  • add exception handling to sample, giving info on each underlying failure

@daniel-sanche daniel-sanche requested review from a team as code owners May 17, 2024 18:50
@daniel-sanche daniel-sanche requested a review from rsamborski May 17, 2024 18:50
@product-auto-label product-auto-label bot added size: s Pull request size is small. api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. labels May 17, 2024
Copy link
Contributor

@igorbernstein2 igorbernstein2 left a comment

Choose a reason for hiding this comment

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

lgtm after the comment is added

SetCell(family_id, "connected_wifi", 1),
SetCell(family_id, "os_build", "12155.0.0-rc1"),
]
await batcher.append(
Copy link
Contributor

Choose a reason for hiding this comment

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

please add a comment that this await is for scheduling the mutation and not for applying the mutation...that will only happen when the context manager exits or batcher.close() is called

@daniel-sanche daniel-sanche merged commit 8c41a6b into googleapis:main May 29, 2024
21 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the googleapis/python-bigtable API. samples Issues that are directly related to samples. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants