in src/main/utils/deequ-controller/deequ-controller.py [0:0]
def testGlueJob(jobId, count, sec, jobName):
i = 0
while i < count:
response = glue.get_job_run(JobName=jobName, RunId=jobId)
status = response['JobRun']['JobRunState']
if status == 'SUCCEEDED':
return 1
elif (status == 'RUNNING' or status == 'STARTING' or status == 'STOPPING'):
time.sleep(sec)
i += 1
else:
return 0
if i == count:
return 0