Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

chore(docs): improve write_batch async sample#966

Merged
daniel-sanche merged 3 commits into
googleapis:mainfrom
daniel-sanche:adjust_batchers_samples
May 29, 2024
Merged

chore(docs): improve write_batch async sample#966
daniel-sanche merged 3 commits into
googleapis:mainfrom
daniel-sanche:adjust_batchers_samples

Conversation

@daniel-sanche
Copy link
Copy Markdown
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 a review from a team as a code owner May 17, 2024 18:50
@daniel-sanche daniel-sanche requested review from a team and 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
Copy Markdown
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
Copy Markdown
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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