From 0077622e6312cd4a727223490017599eac104b4a Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Thu, 11 May 2023 10:11:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E6=9C=8820=E6=97=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E8=AF=9D=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/dag_comm_add.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dags/business/dag_comm_add.py b/dags/business/dag_comm_add.py index 58f4c62..be0924c 100644 --- a/dags/business/dag_comm_add.py +++ b/dags/business/dag_comm_add.py @@ -7,7 +7,8 @@ from kubernetes.client import models as k8s with DAG( dag_id="comm_add_dag", - schedule_interval=None, + # 每月20日1点整分运行 + schedule_interval="0 1 20 * *", start_date=pendulum.datetime(2023, 5, 8, tz="Asia/Shanghai"), catchup=True, description="小区自动化入库" @@ -28,7 +29,7 @@ with DAG( image="192.168.0.19:9012/comm-add:1.0.1", image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")], cmds=["python", "main.py"], - arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf}} else all'], + arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf else all}}'], name="comm_add", task_id="comm_add", get_logs=True