新增出售均价算法

This commit is contained in:
沈健
2025-03-24 17:43:49 +08:00
parent 7f38681f70
commit 61f39b36b6
2 changed files with 36 additions and 14 deletions
+22
View File
@@ -0,0 +1,22 @@
"""
写字楼基准价计算
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="office_sell_base_price_dag",
schedule_interval="0 1 26 * *",
start_date=pendulum.datetime(2024, 3, 24, tz="Asia/Shanghai"),
catchup=True,
description="写字楼出售基准价计算"
) as dag:
t1 = BashOperator(
task_id='sell_base_price',
bash_command='python /opt/airflow/dags/repo/dags/office/sell/base_price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}}',
)
t1