aalopatin commented on code in PR #63922:
URL: https://github.com/apache/airflow/pull/63922#discussion_r2959767892
##########
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/operators/custom_object_launcher.py:
##########
@@ -309,6 +309,9 @@ def start_spark_job(self, image=None, code_path=None,
startup_timeout: int = 600
delta = dt.now() - curr_time
if delta.total_seconds() >= startup_timeout:
pod_status =
self.pod_manager.read_pod(self.pod_spec).status.container_statuses
+ pod_name = self.spark_obj_spec["metadata"]["name"]
Review Comment:
I renamed the variable and added a one test that checks that
delete_spark_job was called when spark_job_not_running=True and exception
AirflowException was raised.
--
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]