Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

docs(samples): Bulk insert sample #299

Merged
merged 12 commits into from
Jul 6, 2022
Merged
Prev Previous commit
Next Next commit
Update samples/ingredients/instances/bulk_insert.py
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
m-strzelczyk and parthea authored Jun 30, 2022
commit a1e1c5bb86a7d7f4009c7b6a5acddfdf11098b5d
2 changes: 1 addition & 1 deletion samples/ingredients/instances/bulk_insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def bulk_insert_instance(project_id: str, zone: str, template: compute_v1.Instan
be returned as a list and will share a label with key `bulk_batch` and a random
value.

If the bulk insert operation fails and can't create the requested number of instances,
If the bulk insert operation fails and the requested number of instances can't be created,
and more than min_count instances are created, then those instances can be found using
the `bulk_batch` label with value attached to the raised exception in bulk_batch_id
attribute. So, you can use the following filter: f"label.bulk_batch={err.bulk_batch_id}"
Expand Down