init
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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(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
|
||||
Reference in New Issue
Block a user