Skip to content

Commit

Permalink
Fix EMR serverless system test (apache#25969)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincbeck authored Aug 27, 2022
1 parent 9e12d48 commit b75797e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions airflow/providers/amazon/aws/sensors/emr.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,6 @@ def __init__(
super().__init__(**kwargs)

def poke(self, context: 'Context') -> bool:
state = None

response = self.hook.conn.get_application(applicationId=self.application_id)

state = response['application']['state']
Expand Down
2 changes: 2 additions & 0 deletions tests/system/providers/amazon/aws/example_emr_serverless.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

with DAG(
dag_id=DAG_ID,
schedule='@once',
start_date=datetime(2021, 1, 1),
tags=['example'],
catchup=False,
Expand Down Expand Up @@ -70,6 +71,7 @@
release_label='emr-6.6.0',
job_type="SPARK",
config={'name': 'new_application'},
wait_for_completion=False,
)
# [END howto_operator_emr_serverless_create_application]

Expand Down

0 comments on commit b75797e

Please sign in to comment.