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


##########
providers/apache/spark/src/airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -704,6 +754,103 @@ def _process_spark_submit_log(self, itr: Iterator[Any]) 
-> None:
 
             self.log.info(line)
 
+    def _track_yarn_application(self, application_id: str) -> None:
+        """Poll ``yarn application -status <id>`` until a final state is 
reached."""
+        self.log.info(
+            "Tracking YARN application %s via 'yarn application -status' 
polling",
+            application_id,
+        )
+        poll_interval = max(self._status_poll_interval, 1)

Review Comment:
   `status_poll_interval` is a pre-existing parameter and defaults to 1. I 
think for high-throughput environments, users can set it to a larger value.
   
   e.g.
   ```python
   SparkSubmitOperator(                                                         
                                                           
       ...,                                                                     
                                                         
       yarn_track_via_application_status=True,
       status_poll_interval=60,
   )
   ```
         



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