新增城市区域均价计算

This commit is contained in:
沈健
2025-03-25 09:43:37 +08:00
parent a91fe73747
commit 46515fe238
2 changed files with 132 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="office_sell_dag",
# 每月24日1点运行
schedule_interval="0 1 24 * *",
start_date=pendulum.datetime(2025, 3, 25, tz="Asia/Shanghai"),
catchup=True,
description="写字楼出售城市区域均价价格计算"
) as dag:
t1 = BashOperator(
task_id='office_sell',
bash_command='python /opt/airflow/dags/repo/dags/office/sell/price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ',
)
t1