amoghrajesh commented on code in PR #76295:
URL: https://github.com/apache/airflow/pull/76295#discussion_r4509240151


##########
providers/databricks/src/airflow/providers/databricks/operators/databricks.py:
##########
@@ -2294,10 +2338,13 @@ def execute(self, context: Context) -> None:
                     metadata=workflow_run_metadata,
                     logger=self.log,
                 )
-        else:
-            self._launch_job(context=context)
-        if self.wait_for_termination:
-            self.monitor_databricks_job()
+            # The run id comes from the upstream launch task's xcom, so a 
retry already reconnects
+            # to the shared run rather than submitting anything.
+            if self.wait_for_termination:
+                self.monitor_databricks_job()
+            return
+
+        self.execute_resumable(context)

Review Comment:
   Intended. Which clear you use decides it, and that comes from core rather 
than these operators - SubmitRun and RunNow have worked this way since 7.17.0. 
Added the `wait_for_termination=False` case to both docs pages.



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