Files
airflow/dags/shop/dag_shop_sell.py
T
2025-04-14 14:35:02 +08:00

27 lines
759 B
Python

"""
小区周边配套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