优化
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
from airflow.operators.bash import BashOperator
|
# from airflow.operators.bash import BashOperator
|
||||||
import pendulum
|
# import pendulum
|
||||||
from airflow import DAG
|
# from airflow import DAG
|
||||||
|
#
|
||||||
with DAG(
|
# with DAG(
|
||||||
dag_id="samples_notice_dag",
|
# dag_id="samples_notice_dag",
|
||||||
# 每月10日1点运行
|
# # 每月10日1点运行
|
||||||
schedule_interval="0 0 10 * *",
|
# schedule_interval="0 0 10 * *",
|
||||||
start_date=pendulum.datetime(2023, 8, 1, tz="Asia/Shanghai"),
|
# start_date=pendulum.datetime(2025, 6, 9, tz="Asia/Shanghai"),
|
||||||
catchup=True,
|
# catchup=True,
|
||||||
description="样本数量监控提醒"
|
# description="样本数量监控提醒"
|
||||||
) as dag:
|
# ) as dag:
|
||||||
t1 = BashOperator(
|
# t1 = BashOperator(
|
||||||
task_id='samples_notice',
|
# task_id='samples_notice',
|
||||||
bash_command='python /opt/airflow/dags/repo/dags/jh/sample/samples_notice.py',
|
# bash_command='python /opt/airflow/dags/repo/dags/jh/sample/samples_notice.py',
|
||||||
)
|
# )
|
||||||
t1
|
# t1
|
||||||
Reference in New Issue
Block a user