awslabs / amazon-emr-cli

A command-line interface for packaging, deploying, and running your EMR Serverless Spark jobs
Apache License 2.0
35 stars 12 forks source link

Add timeout option to the emr-serverless job run #43

Closed kszonsteg closed 3 months ago

kszonsteg commented 3 months ago

The default timeout for jobs in the EMR serverless is 12 hours (https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/considerations.html). For most uses cases this timeout is sufficient, but not for all and especially for the spark structured streaming job, which is running all the time.

The solution proposal is to add the --emr-serverless-timeout flag to the run command and pass the value to the start_job_run method.

lmouhib commented 3 months ago

Merged