import os import glob DAG_LIST = [ "csst-msc-l1-qc0", "csst-msc-l1-mbi", "csst-msc-l1-sls", "csst-msc-l1-ast", "csst-cpic-l1", "csst-cpic-l1-qc0", ] EXISTENCE_MAPPING = {True: "✅", False: "❌"} print(" DAG \t definition task") print("--------------------------------------------") for this_dag_id in DAG_LIST: this_dag_definition_file = os.path.join( os.path.dirname(os.path.dirname(__file__)), "dag_config", f"{this_dag_id}.yml", ) this_dag_task_template_file = os.path.join( os.path.dirname(os.path.dirname(__file__)), "dag_config", f"{this_dag_id}.json", ) status_def = EXISTENCE_MAPPING[os.path.exists(this_dag_definition_file)] status_task = EXISTENCE_MAPPING[os.path.exists(this_dag_task_template_file)] print(f"{this_dag_id} \t {status_def} {status_task}")