新增写字楼均价计算

This commit is contained in:
沈健
2025-01-20 18:17:27 +08:00
parent cb469f2f41
commit a226629f9c
4 changed files with 101 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
"""
小区周边配套DAG
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="rent_dag",
# 每月25日1点运行
schedule_interval="0 1 25 * *",
start_date=pendulum.datetime(2024, 7, 17, tz="Asia/Shanghai"),
catchup=True
) as dag:
t1 = BashOperator(
task_id='rent',
bash_command='python /opt/airflow/dags/repo/dags/office/rent/RegionPrice.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ',
)
t1