优化估值检测
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="evaluate_dag",
|
||||
schedule_interval="30 16 27 * *",
|
||||
start_date=pendulum.datetime(2023, 3, 28, tz="Asia/Shanghai"),
|
||||
catchup=True,
|
||||
description="每月27日估值文件检测"
|
||||
) as dag:
|
||||
t1 = BashOperator(
|
||||
task_id='merge',
|
||||
bash_command='python /opt/airflow/dags/repo/dags/jh/merge/evaluate.py {{dag_run.conf["day"] if "day" in dag_run.conf}}',
|
||||
)
|
||||
t1
|
||||
Reference in New Issue
Block a user