Skip to content

Commit

Permalink
fix(airflow): load namespace and pod_name from trigger event (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala authored Jul 29, 2024
1 parent 1a1ac96 commit 9fad5e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spark_on_k8s/airflow/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ def execute(self, context: Context):
raise AirflowException(f"The job finished with status: {app_status}")

def execute_complete(self, context: Context, event: dict, **kwargs):
self.namespace = event["namespace"]
self._driver_pod_name = event["pod_name"]
if self.app_waiter == "log":
from spark_on_k8s.utils.app_manager import SparkAppManager

Expand Down

0 comments on commit 9fad5e8

Please sign in to comment.