We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 400673b commit 24f3910Copy full SHA for 24f3910
samples/create_dataset.py
@@ -30,9 +30,9 @@ def create_dataset(dataset_id):
30
# TODO(developer): Specify the geographic location where the dataset should reside.
31
dataset.location = "US"
32
33
- # Send the dataset to the API for creation.
+ # Send the dataset to the API for creation, with an explicit timeout.
34
# Raises google.api_core.exceptions.Conflict if the Dataset already
35
# exists within the project.
36
- dataset = client.create_dataset(dataset) # Make an API request.
+ dataset = client.create_dataset(dataset, timeout=30) # Make an API request.
37
print("Created dataset {}.{}".format(client.project, dataset.dataset_id))
38
# [END bigquery_create_dataset]
0 commit comments