You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/09/29 13:59:20 UTC

[GitHub] [airflow] denimalpaca commented on a diff in pull request #26761: Common sql bugfixes and improvements

denimalpaca commented on code in PR #26761:
URL: https://github.com/apache/airflow/pull/26761#discussion_r983584944


##########
airflow/providers/common/sql/operators/sql.py:
##########
@@ -60,6 +74,12 @@ def _get_failed_checks(checks, col=None):
     ]
 
 
+def _raise_exception(exception_string, retry_on_failure):
+    if retry_on_failure:
+        raise AirflowException(exception_string)

Review Comment:
   This method comes from this [issue](https://github.com/apache/airflow/discussions/26712#discussioncomment-3747662); the `AirflowFailException` should halt the task from retrying.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org