Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect soft_fail parameter in AthenaSensor #34553

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

utkarsharma2
Copy link
Contributor

This PR intends to solve the issue that the soft_fail argument in AthenaSensor is not respected.

@@ -78,7 +78,11 @@ def poke(self, context: Context) -> bool:
state = self.hook.poll_query_status(self.query_execution_id, self.max_retries, self.sleep_time)

if state in self.FAILURE_STATES:
raise AirflowException("Athena sensor failed")
# TODO: remove this if block when min_airflow_version is set to higher than 2.7.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity. Why? Why we no longer need this check from 2.7.1?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@vincbeck vincbeck merged commit 5128e57 into apache:main Sep 22, 2023
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants