Files
airflow/dags/stat/dag_community_count_price_rent.py
T
shenjian@fangjia.com cf9c99a416 新增字段统计
2023-03-29 15:15:24 +08:00

18 lines
519 B
Python

from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="count_price_rent_dag",
# 每周日运行
schedule_interval="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