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


##########
providers/apache/spark/src/airflow/providers/apache/spark/operators/spark_submit.py:
##########
@@ -198,7 +224,113 @@ def execute(self, context: Context) -> None:
             self.conf = 
inject_transport_information_into_spark_properties(self.conf, context)
         if self._hook is None:
             self._hook = self._get_hook()
-        self._hook.submit(self.application)
+        hook = self._hook
+        if hook._should_track_driver_status and self.reconnect_on_retry:

Review Comment:
   Good catch — you're right. The opt-out path fell through to bare 
`hook.submit()` which no longer polls in cluster mode (polling was extracted 
into `poll_until_complete`). Fixed: the `reconnect_on_retry=False` + 
cluster-mode path now calls `submit_job` + `poll_until_complete` directly, 
giving it the same submit-and-wait semantics as before without the crash 
recovery.
   
   ---
   Drafted-by: Claude Sonnet 4.6 (no human review before posting)



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