Skip to content

Commit 8d51b2f

Browse files
authored
chore(samples): increase timeouts for instance/cluster creation (#384)
Closes #383.
1 parent 0e3d769 commit 8d51b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/google-cloud-bigtable/samples/instanceadmin/instanceadmin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def run_instance_operations(project_id, instance_id, cluster_id):
7474
# Create instance with given options
7575
operation = instance.create(clusters=[cluster])
7676
# Ensure the operation completes.
77-
operation.result(timeout=30)
77+
operation.result(timeout=60)
7878
print("\nCreated instance: {}".format(instance_id))
7979
# [END bigtable_create_prod_instance]
8080

@@ -159,7 +159,7 @@ def add_cluster(project_id, instance_id, cluster_id):
159159
else:
160160
operation = cluster.create()
161161
# Ensure the operation completes.
162-
operation.result(timeout=30)
162+
operation.result(timeout=60)
163163
print("\nCluster created: {}".format(cluster_id))
164164
# [END bigtable_create_cluster]
165165

0 commit comments

Comments
 (0)