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