17 lines
499 B
Python
17 lines
499 B
Python
from airflow.providers.standard.operators.bash import BashOperator
|
|
import pendulum
|
|
from airflow import DAG
|
|
|
|
with DAG(
|
|
dag_id="samples_notice_dag",
|
|
# 每月10日1点运行
|
|
schedule="0 0 10 * *",
|
|
start_date=pendulum.datetime(2025, 6, 9, tz="Asia/Shanghai"),
|
|
catchup=True,
|
|
description="样本数量监控提醒"
|
|
) as dag:
|
|
t1 = BashOperator(
|
|
task_id='samples_notice',
|
|
bash_command='python /opt/airflow/dags/repo/dags/jh/sample/samples_notice.py',
|
|
)
|
|
t1 |