diff --git a/dags/business/community_summary_dag.py b/dags/business/community_summary_dag.py index 0e204ad..6cb1392 100644 --- a/dags/business/community_summary_dag.py +++ b/dags/business/community_summary_dag.py @@ -10,84 +10,85 @@ with DAG( catchup=True, description="地址输出信息分类数据定时更新" ) as dag: - t1 = BashOperator( + comm = BashOperator( task_id='comm', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/comm.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t2 = BashOperator( + price = BashOperator( task_id='price', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/price.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t3 = BashOperator( + sell = BashOperator( task_id='sell', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/sell.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t4 = BashOperator( + avg_cost = BashOperator( task_id='avg_cost', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/avg_cost.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t5 = BashOperator( + trade = BashOperator( task_id='trade', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/trade.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t6 = BashOperator( + total_price = BashOperator( task_id='total_price', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/total_price.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t6_1 = BashOperator( + total_price_complete = BashOperator( task_id='total_price_complete', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/total_price_complete.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t7 = BashOperator( + traffic = BashOperator( task_id='traffic', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/traffic.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t7_1 = BashOperator( + business_district = BashOperator( task_id='business_district', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/business_district.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t8 = BashOperator( + medical = BashOperator( task_id='medical', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/medical.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t9 = BashOperator( + life = BashOperator( task_id='life', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/life.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t10 = BashOperator( + relative_price_ranking = BashOperator( task_id='relative_price_ranking', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/relative_price_ranking.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t10_1 = BashOperator( + estate_charge_complete = BashOperator( task_id='estate_charge_complete', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/estate_charge_complete.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t10_2 = BashOperator( + estate_charge_ranking = BashOperator( task_id='estate_charge_ranking', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/estate_charge_ranking.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t11 = BashOperator( + consumption = BashOperator( task_id='consumption', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/consumption.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t12 = BashOperator( + price_rating = BashOperator( task_id='price_rating', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/price_rating.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t13 = BashOperator( + education = BashOperator( task_id='education', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/education.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t14 = BashOperator( + education2 = BashOperator( task_id='education2', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/education2.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t15 = BashOperator( + extra = BashOperator( task_id='extra', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/extra.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t16 = BashOperator( + other = BashOperator( task_id='other', bash_command='python /opt/airflow/dags/repo/dags/business/business/community/other.py {{dag_run.conf["type"] if "type" in dag_run.conf}}', ) - t1 >> t2 >> t3 >> t4 >> t5 >> t6 >> t6_1 >> t7 >> t7_1 >> t8 >> t9 >> t10 >> t10_1 >> t10_2 >> t11 >> t12 >> t13 >> t14 >> t15 >> t16 + comm >> price >> avg_cost >> total_price >> total_price_complete >> relative_price_ranking >> estate_charge_complete >> estate_charge_ranking \ + >> consumption >> price_rating >> sell >> trade >> traffic >> business_district >> medical >> life >> education >> education2 >> extra >> other