Files
airflow/dags/stats/dag_community_count_price_rent.py
T
2026-07-22 15:17:02 +08:00

18 lines
510 B
Python

from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="count_price_rent_dag",
# 每周日运行
schedule="0 10 * * 7",
start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"),
description="常用字段覆盖率统计",
catchup=True
) as dag:
t1 = BashOperator(
task_id='community_count_price_rent',
bash_command='python /opt/airflow/dags/repo/dags/stat/community/community_count_price_rent.py',
)
t1