Taragolis commented on code in PR #36601:
URL: https://github.com/apache/airflow/pull/36601#discussion_r1448958556
##########
airflow/providers/databricks/operators/databricks.py:
##########
@@ -88,6 +88,19 @@ def _handle_databricks_operator_execution(operator, hook,
log, context) -> None:
f"{operator.task_id} failed with terminal state:
{run_state} "
f"and with the error {run_state.state_message}"
)
+ if isinstance(operator, DatabricksRunNowOperator) and
operator.repair_run:
+ operator.repair_run = False
+ log.warning(
+ error_message + "but since repair run is set,
repairing the run with all "
+ "failed tasks"
Review Comment:
```suggestion
"%s but since repair run is set, repairing the
run with all failed tasks",
error_message
```
Better to avoid concatenation in logging message and use %-substitution
--
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]