Skip to content

Commit

Permalink
fix(airflow): wait for termination status when there is no more log (#40
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hussein-awala authored May 3, 2024
1 parent ba6812b commit 6ffe952
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spark_on_k8s/airflow/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ def execute(self, context):
namespace=self.namespace,
pod_name=self._driver_pod_name,
)
# wait for termination status
spark_app_manager.wait_for_app(
namespace=self.namespace,
pod_name=self._driver_pod_name,
poll_interval=1,
)
app_status = spark_app_manager.app_status(
namespace=self.namespace,
pod_name=self._driver_pod_name,
Expand Down

0 comments on commit 6ffe952

Please sign in to comment.