You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "karenbraganz (via GitHub)" <gi...@apache.org> on 2026/09/03 17:32:40 UTC

Re: [PR] Detect Spark driver completion by container state when tracking via k8s API [airflow]

karenbraganz commented on code in PR #68048:
URL: https://github.com/apache/airflow/pull/68048#discussion_r3927046371


##########
providers/apache/spark/src/airflow/providers/apache/spark/hooks/spark_submit.py:
##########
@@ -1177,13 +1180,14 @@ def _start_driver_status_tracking(self) -> None:
 
     def _poll_k8s_driver_via_api(self) -> str | None:
         """
-        Poll the K8s driver pod phase until it reaches a terminal state.
+        Poll the K8s driver container status or pod phase until it reaches a terminal state.
 
         Returns the terminal phase string (e.g. ``"Succeeded"``) on normal completion,
         or ``None`` if the pod vanished mid-poll (404 — likely deleted by ``on_kill``).
         Raises ``RuntimeError`` on failure phases or unrecoverable API errors.
         """
         pod_name = self._kubernetes_driver_pod
+        driver_container_name = self.kubernetes_driver_container

Review Comment:
   I have added docs and made the names consistent. I also changed `pod_name = self._kubernetes_driver_pod` to `k8s_driver_pod_name = self.k8s_driver_pod_name`



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org