Files
airflow/dags/price_exponents/dag_seaweed_price_month.py
T

24 lines
560 B
Python

"""
小区房价指数DAG
"""
from airflow.providers.standard.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="seaweed_price_month_dag",
# 每月1日1点运行
schedule="0 1 1 * *",
start_date=pendulum.datetime(2024, 12, 6, tz="Asia/Shanghai"),
catchup=True,
description="小区房价指数定时计算"
) as dag:
t1 = BashOperator(
task_id='seaweed_price_month',
bash_command='python /opt/airflow/dags/repo/dags/price_exponents/seaweed_price_month.py ',
)
t1