mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-07 00:28:02 +00:00
* Fix #7904: Filter out old tasks which doesn't have dag runs while publishing status * Fix #7904: Filter out old tasks which doesn't have dag runs while publishing status
This commit is contained in:
parent
566602373f
commit
8efc0370e5
@ -207,6 +207,9 @@ class AirflowSource(PipelineServiceSource):
|
||||
dag_run_list = self.get_pipeline_status(pipeline_details.dag_id)
|
||||
|
||||
for dag_run in dag_run_list:
|
||||
if (
|
||||
dag_run.run_id
|
||||
): # Airflow dags can have old task which are turned off/commented out in code
|
||||
tasks = self.get_task_instances(
|
||||
dag_id=dag_run.dag_id,
|
||||
run_id=dag_run.run_id,
|
||||
@ -264,7 +267,6 @@ class AirflowSource(PipelineServiceSource):
|
||||
json_data_column,
|
||||
SerializedDagModel.fileloc,
|
||||
).all():
|
||||
|
||||
yield OMSerializedDagDetails(
|
||||
dag_id=serialized_dag[0],
|
||||
data=serialized_dag[1],
|
||||
|
Loading…
x
Reference in New Issue
Block a user