添加楼盘评级算法

This commit is contained in:
2025-06-09 10:48:21 +08:00
parent 02e1aab542
commit b064138c46
2 changed files with 457 additions and 2 deletions
+2 -2
View File
@@ -6,12 +6,12 @@ with DAG(
dag_id="community_rating_dag",
# 每月的最后一天运行
schedule_interval="0 20 * * 6",
start_date=pendulum.datetime(2024, 7, 12, tz="Asia/Shanghai"),
start_date=pendulum.datetime(2025, 6, 12, tz="Asia/Shanghai"),
description="小区楼盘评级计算",
catchup=True
) as dag:
t1 = BashOperator(
task_id='community_rating',
bash_command='python /opt/airflow/dags/repo/dags/stat/community/rate.py'
bash_command='python /opt/airflow/dags/repo/dags/stat/community/community_rate.py --param1 "{{ dag_run.conf.get("city", "all")}}"'
)
t1