moomindani commented on code in PR #63420:
URL: https://github.com/apache/airflow/pull/63420#discussion_r2934461287


##########
providers/databricks/src/airflow/providers/databricks/operators/databricks.py:
##########
@@ -1366,6 +1380,13 @@ def _convert_to_databricks_workflow_task(
             **base_task_json,
         }
 
+        trigger_rule_value = (
+            self.trigger_rule.value if hasattr(self.trigger_rule, "value") 
else str(self.trigger_rule)
+        )
+        databricks_run_if = 
_TRIGGER_RULE_TO_DATABRICKS_RUN_IF.get(trigger_rule_value)
+        if databricks_run_if:
+            result["run_if"] = databricks_run_if

Review Comment:
   Thanks for the suggestion! Added logging in feeb6f71b0 — it now logs which 
`trigger_rule` was mapped to which Databricks `run_if`, and also logs when no 
mapping exists (falling back to the Databricks default `ALL_SUCCESS`).



-- 
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]

Reply via email to