Files
airflow/dags/jh/dag_third_price.py

17 lines
490 B
Python

from airflow.providers.standard.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="third_price_dag",
# 每月23日运行
schedule="0 16 18 * *",
start_date=pendulum.datetime(2023, 3, 17, tz="Asia/Shanghai"),
catchup=True,
description="建行过滤第三方均价"
) as dag:
t1 = BashOperator(
task_id='third_price',
bash_command='python /opt/airflow/dags/repo/dags/jh/price/third_price.py',
)
t1