GabrielSalla commented on code in PR #46424:
URL: https://github.com/apache/airflow/pull/46424#discussion_r1961769712
##########
providers/src/airflow/providers/databricks/operators/databricks.py:
##########
@@ -207,6 +207,12 @@ def
_handle_deferrable_databricks_operator_execution(operator, hook, log, contex
else:
if run_state.is_successful:
log.info("%s completed successfully.", operator.task_id)
+ else:
+ error_message = (
+ f"{operator.task_id} failed with terminal state:
{run_state} "
+ f"and with the error {run_state.state_message}"
+ )
+ raise AirflowException(error_message)
Review Comment:
I'll take a look at how other operators handles this kind of exceptions to
make it similar for these operators, while also fixing the conflicts
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]