Skip to content

Commit

Permalink
DAGs: Bad logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Juan Puerto committed Mar 6, 2024
1 parent f64ec0d commit 0d0c217
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ingest-pipeline/airflow/dags/rebuild_multiple_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def build_dataset_lists(**kwargs):
if ds_rslt.get("dataset_info"):
# dataset_info should only be populated for processed_datasets
print(ds_rslt.get("dataset_info"))
kwargs["dag_run"].conf["processed_datasets"].append(uuid)
else:
if ds_rslt["creation_action"] == "Multi-Assay Split":
kwargs["dag_run"].conf["component_datasets"].append(uuid)
else:
kwargs["dag_run"].conf["processed_datasets"].append(uuid)
else:
kwargs["dag_run"].conf["primary_datasets"].append(uuid)
kwargs["dag_run"].conf["primary_datasets"].append(uuid)

t_build_dataset_lists = PythonOperator(
task_id="build_dataset_lists",
Expand Down

0 comments on commit 0d0c217

Please sign in to comment.