17 lines
531 B
Python
17 lines
531 B
Python
from airflow.providers.standard.operators.bash import BashOperator
|
|
import pendulum
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
dag_id="third_gxd_dag",
|
|
schedule=None,
|
|
start_date=pendulum.datetime(2024, 7, 22, tz="Asia/Shanghai"),
|
|
catchup=True,
|
|
description="第三方均价及国信达价格输出"
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='gxd_dag',
|
|
bash_command='python /opt/airflow/dags/repo/dags/jh/price/price_third_gxd.py {{dag_run.conf["yearmonth"] if "yearmonth" in dag_run.conf}} ',
|
|
)
|
|
t1
|