Files
airflow/dags/stat/community_count_price_rent_dag.py
T
2022-07-04 14:40:16 +08:00

17 lines
475 B
Python

from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"community_count_price_rent_dag",
# 每周日运行
schedule_interval="0 10 * * 7",
start_date=pendulum.datetime(2022, 7, 1, tz="Asia/Shanghai"),
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