新增房源样本监控脚本

This commit is contained in:
zhaojixiang@fangjia.com
2023-08-01 10:20:07 +08:00
parent 18ee0b05ac
commit c4e9f38b51
4 changed files with 148 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
from airflow.operators.bash import BashOperator
import pendulum
from airflow import DAG
with DAG(
dag_id="samples_notice_dag",
# 每月1日1点运行
schedule_interval="0 1 1 * *",
start_date=pendulum.datetime(2023, 8, 1, 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