添加楼盘评级算法
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from airflow.operators.bash import BashOperator
|
||||
import pendulum
|
||||
from airflow import DAG
|
||||
|
||||
with DAG(
|
||||
dag_id="community_rating_dag",
|
||||
# 每月的最后一天运行
|
||||
schedule_interval="0 20 * * 6",
|
||||
description="小区楼盘评级计算",
|
||||
catchup=True
|
||||
) as dag:
|
||||
t1 = BashOperator(
|
||||
task_id='community_rating',
|
||||
bash_command='python /opt/airflow/dags/repo/dags/stat/community/rate.py'
|
||||
)
|
||||
t1
|
||||
Reference in New Issue
Block a user