Files
airflow/dags/stat/dag_community_rating.py
T
2024-07-12 16:04:17 +08:00

16 lines
427 B
Python

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