命名修改

This commit is contained in:
沈健
2025-04-14 14:35:02 +08:00
parent acc10c6c3d
commit 80d391b358
+26
View File
@@ -0,0 +1,26 @@
"""
小区周边配套DAG
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="shop_sell_dag",
schedule_interval="0 6 25 * *",
start_date=pendulum.datetime(2025, 4, 10, tz="Asia/Shanghai"),
catchup=True,
description="商铺出售城市区域商圈均价计算"
) as dag:
t1 = BashOperator(
task_id='price',
bash_command='python /opt/airflow/dags/repo/dags/shop/sell/price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ',
)
t2 = BashOperator(
task_id='business',
bash_command='python /opt/airflow/dags/repo/dags/shop/sell/business.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ',
)
t1 >> t2