Skip to content

Commit 007a381

Browse files
authored
chore: correct region tag in submit_job_to_cluster.py (#304)
Change region tag to make it unique. The previous tag was used in another create cluster file and caused problems with automation tools.
1 parent 101a440 commit 007a381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dataproc/snippets/submit_job_to_cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def download_output(project, cluster_id, output_bucket, job_id):
8585
return bucket.blob(output_blob).download_as_string()
8686

8787

88-
# [START dataproc_create_cluster]
88+
# [START dataproc_submit_job_create_cluster]
8989
def create_cluster(dataproc, project, zone, region, cluster_name):
9090
"""Create the cluster."""
9191
print("Creating cluster...")
@@ -110,7 +110,7 @@ def create_cluster(dataproc, project, zone, region, cluster_name):
110110
waiting_callback = True
111111

112112

113-
# [END dataproc_create_cluster]
113+
# [END dataproc_submit_job_create_cluster]
114114

115115

116116
def callback(operation_future):

0 commit comments

Comments
 (0)