amoghrajesh commented on code in PR #67473:
URL: https://github.com/apache/airflow/pull/67473#discussion_r3368776956
##########
providers/apache/spark/src/airflow/providers/apache/spark/operators/spark_submit.py:
##########
@@ -362,9 +381,10 @@ def poll_until_complete(self, external_id: JsonValue,
context: Context) -> None:
external_id = cast("str", external_id)
if self._hook is None:
self._hook = self._get_hook()
- if self._hook._is_yarn:
- # TODO: poll YARN ResourceManager until app reaches terminal state
- raise NotImplementedError("YARN poll not yet implemented")
+ if self._hook._is_yarn_cluster_mode:
+ self._hook._start_yarn_application_status_tracking(external_id)
Review Comment:
Fixed — wrapped `_start_yarn_application_status_tracking` in `try/finally`
so `_run_post_submit_commands` always fires.
--
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]