区域房价指数和小区房价指数定时计算

This commit is contained in:
gallup
2024-12-06 10:12:29 +08:00
parent db8cbf0edb
commit 5913f8fff0
4 changed files with 739 additions and 0 deletions
@@ -0,0 +1,22 @@
"""
小区周边配套DAG
"""
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="region_price_month_dag",
# 每月1日1点运行
schedule_interval="0 1 1 * *",
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
catchup=True
) as dag:
t1 = BashOperator(
task_id='region_price_month',
bash_command='python /opt/airflow/dags/repo/dags/price_exponents/region_price_month.py ',
)
t1