融合每日检测迁移至airflow

This commit is contained in:
shenjian@fangjia.com
2022-11-15 10:07:23 +08:00
parent 12d3023738
commit 8a8a9363e0
2 changed files with 372 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="merge_dag",
# 每日下午4点
schedule_interval="0 16 * * *",
start_date=pendulum.datetime(2022, 8, 23, tz="Asia/Shanghai"),
catchup=True,
description="每日融合文件检测"
) as dag:
t1 = BashOperator(
task_id='merge',
bash_command='python /opt/airflow/dags/repo/dags/jh/merge/merge.py',
)
t1