nailo2c commented on code in PR #65991:
URL: https://github.com/apache/airflow/pull/65991#discussion_r3255286489


##########
providers/apache/spark/src/airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -594,6 +611,7 @@ def submit(self, application: str = "", **kwargs: Any) -> 
None:
         :param application: Submitted application, jar or py file
         :param kwargs: extra arguments to Popen (see subprocess.Popen)
         """
+        self._yarn_application_submitted = False

Review Comment:
   This is a defensive reset for repeated `submit()` calls on the same hook 
instance.
   Without it, a stale `True` from a previous submission could make a later 
submission terminate `spark-submit` too early.



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