1bddafd3102e4e0841d78673581c3ead8f68a7c8,dataproc/submit_job_to_cluster.py,,wait_for_job,#Any#Any#Any#Any#,174
Before Change
def wait_for_job(dataproc, project, region, job_id):
print("Waiting for job to finish...")
while True:
result = dataproc .projects().regions().jobs().get(
projectId=project,
region=region,
jobId=job_id).execute()
After Change
while True:
job = dataproc.get_job(project, region, job_id)
// Handle exceptions
if job.status.State.Name(job.status.state) == "ERROR":
raise Exception(job.status.details)
elif job.status.State.Name(job.status.state) == "DONE":
print("Job finished.")
return job
// [END dataproc_wait]
def main(project_id,
zone,
cluster_name,
bucket_name,
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 1bddafd3102e4e0841d78673581c3ead8f68a7c8
Time: 2019-05-20
Author: amancuso@google.com
File Name: dataproc/submit_job_to_cluster.py
Class Name:
Method Name: wait_for_job
Project Name: has2k1/plotnine
Commit Name: e6a2711017016e28de52241a8896eb7f86cbb17a
Time: 2013-10-08
Author: lamp.greg@gmail.com
File Name: ggplot/ggplot.py
Class Name: ggplot
Method Name: _get_layers
Project Name: dpressel/mead-baseline
Commit Name: 18fba98733551c294c760e7186f6a18d44d73d18
Time: 2018-09-24
Author: dpressel@gmail.com
File Name: python/baseline/tf/lm/model.py
Class Name: WordLanguageModel
Method Name: create
Project Name: SpiNNakerManchester/sPyNNaker
Commit Name: 4c5dba3176ef8fbba0690e59e75b9f66ee945700
Time: 2018-06-05
Author: Andrew.Rowley@manchester.ac.uk
File Name: spynnaker/pyNN/models/neuron/synaptic_manager.py
Class Name: SynapticManager
Method Name: __generate_on_chip_data