skip to Main Content

Amazon web services – how to set interval in lambda start job

I have lambda that stops a running job and start a different glue job. It goes like this: def lambda_handler(event, context): client = boto3.client('glue') body = json.loads(event['body']) job_id_to_stop = body['job_id_to_stop'] job_to_start_argument = body['job_to_start_argument'] client.batch_stop_job_run( #STOP JOB RUN JobName='job-to-stop', JobRunIds=[ job_id_to_stop…

VIEW QUESTION
Back To Top
Search