优化
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
from airflow.operators.bash import BashOperator
|
||||
import pendulum
|
||||
from airflow import DAG
|
||||
|
||||
with DAG(
|
||||
dag_id="third_gxd_dag",
|
||||
#schedule_interval="30 16 27 * *",
|
||||
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
|
||||
Reference in New Issue
Block a user