@@ -52,7 +52,7 @@ def create_database(instance_id, database_id):
52
52
operation = database .create ()
53
53
54
54
print ('Waiting for operation to complete...' )
55
- operation .result ()
55
+ operation .result (120 )
56
56
57
57
print ('Created database {} on instance {}' .format (
58
58
database_id , instance_id ))
@@ -213,7 +213,7 @@ def add_index(instance_id, database_id):
213
213
'CREATE INDEX AlbumsByAlbumTitle ON Albums(AlbumTitle)' ])
214
214
215
215
print ('Waiting for operation to complete...' )
216
- operation .result ()
216
+ operation .result (120 )
217
217
218
218
print ('Added the AlbumsByAlbumTitle index.' )
219
219
# [END spanner_create_index]
@@ -306,7 +306,7 @@ def add_storing_index(instance_id, database_id):
306
306
'STORING (MarketingBudget)' ])
307
307
308
308
print ('Waiting for operation to complete...' )
309
- operation .result ()
309
+ operation .result (120 )
310
310
311
311
print ('Added the AlbumsByAlbumTitle2 index.' )
312
312
# [END spanner_create_storing_index]
@@ -355,7 +355,7 @@ def add_column(instance_id, database_id):
355
355
'ALTER TABLE Albums ADD COLUMN MarketingBudget INT64' ])
356
356
357
357
print ('Waiting for operation to complete...' )
358
- operation .result ()
358
+ operation .result (120 )
359
359
360
360
print ('Added the MarketingBudget column.' )
361
361
# [END spanner_add_column]
@@ -509,7 +509,7 @@ def create_table_with_timestamp(instance_id, database_id):
509
509
])
510
510
511
511
print ('Waiting for operation to complete...' )
512
- operation .result ()
512
+ operation .result (120 )
513
513
514
514
print ('Created Performances table on database {} on instance {}' .format (
515
515
database_id , instance_id ))
@@ -554,7 +554,7 @@ def add_timestamp_column(instance_id, database_id):
554
554
'OPTIONS(allow_commit_timestamp=true)' ])
555
555
556
556
print ('Waiting for operation to complete...' )
557
- operation .result ()
557
+ operation .result (120 )
558
558
559
559
print ('Altered table "Albums" on database {} on instance {}.' .format (
560
560
database_id , instance_id ))
@@ -1122,7 +1122,7 @@ def create_table_with_datatypes(instance_id, database_id):
1122
1122
])
1123
1123
1124
1124
print ('Waiting for operation to complete...' )
1125
- operation .result ()
1125
+ operation .result (120 )
1126
1126
1127
1127
print ('Created Venues table on database {} on instance {}' .format (
1128
1128
database_id , instance_id ))
0 commit comments