17 lines
491 B
Python
17 lines
491 B
Python
from airflow.operators.bash import BashOperator
|
|
import pendulum
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
dag_id="evaluate_dag",
|
|
schedule="30 16 27 * *",
|
|
start_date=pendulum.datetime(2023, 3, 28, tz="Asia/Shanghai"),
|
|
catchup=True,
|
|
description="每月27日估值文件检测"
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='evaluate',
|
|
bash_command='python /opt/airflow/dags/repo/dags/jh/merge/evaluate.py {{dag_run.conf["day"] if "day" in dag_run.conf}}',
|
|
)
|
|
t1
|