新增写字楼售价填充

This commit is contained in:
沈健
2025-03-26 13:15:44 +08:00
parent 46515fe238
commit 0c751f413a
3 changed files with 100 additions and 3 deletions
+6 -2
View File
@@ -9,7 +9,7 @@ from airflow import DAG
with DAG(
dag_id="office_sell_base_price_dag",
schedule_interval="0 1 26 * *",
schedule_interval="0 1 27 * *",
start_date=pendulum.datetime(2025, 3, 24, tz="Asia/Shanghai"),
catchup=True,
description="写字楼出售基准价计算"
@@ -18,5 +18,9 @@ with DAG(
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
t2 = BashOperator(
task_id='fill_base_price',
bash_command='python /opt/airflow/dags/repo/dags/office/sell/fill_base_price.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}}',
)
t1 >> t2