Files
airflow/dags/stat/dag_community_count_price_rent.py
T
2023-03-17 21:01:37 +08:00

17 lines
466 B
Python

from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
"count_price_rent_dag",
# 每周日运行
schedule_interval="0 10 * * 7",
start_date=pendulum.datetime(2023, 3, 17, 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