From e48def268ddff28add4d151172a9cf5ea4ea7158 Mon Sep 17 00:00:00 2001 From: lmouhib Date: Fri, 10 May 2024 11:19:59 +0100 Subject: [PATCH] fix emr serverless timeout --- src/emr_cli/deployments/emr_serverless.py | 3 --- src/emr_cli/emr_cli.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/emr_cli/deployments/emr_serverless.py b/src/emr_cli/deployments/emr_serverless.py index d04e7bf..66c522d 100644 --- a/src/emr_cli/deployments/emr_serverless.py +++ b/src/emr_cli/deployments/emr_serverless.py @@ -270,9 +270,6 @@ def run_job( if s3_logs_uri: config_overrides = {"monitoringConfiguration": {"s3MonitoringConfiguration": {"logUri": s3_logs_uri}}} - if timeout is None: - timeout = 12 * 60 # set to AWS default value (12 hours in minutes) - response = self.client.start_job_run( applicationId=self.application_id, executionRoleArn=self.job_role, diff --git a/src/emr_cli/emr_cli.py b/src/emr_cli/emr_cli.py index a6f8b07..1e7e15f 100644 --- a/src/emr_cli/emr_cli.py +++ b/src/emr_cli/emr_cli.py @@ -217,7 +217,7 @@ def deploy(project, entry_point, s3_code_uri): @click.option( "--emr-serverless-timeout", help="EMR Serverless job timeout in minutes - defaults to 12 hours", - default=None, + default=720, # set to AWS default value (12 hours in minutes) type=int ) @click.pass_obj