From 6c3ef4ebbeafb8729889c9c44fd8f6a0fc97fc04 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Wed, 10 May 2023 09:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E5=8F=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/dag_comm_add.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dags/business/dag_comm_add.py b/dags/business/dag_comm_add.py index 0d45074..73b2cd9 100644 --- a/dags/business/dag_comm_add.py +++ b/dags/business/dag_comm_add.py @@ -21,7 +21,11 @@ with DAG( # 临沂为我们的传参,python代码中, 镜像中部分代码 # @ click.command() # @ click.option('--city', default="all", help='要计算的城市') - command='python main.py --city {{dag_run.conf["city"] if "city" in dag_run.conf}} else all', + #command='python main.py --city {{dag_run.conf["city"] if "city" in dag_run.conf}} else all', + command='echo "this is a test message shown from within the container', + mounts=[ + Mount(source="/var/run/docker.sock", target="/var/run/docker.sock", type="bind") + ], task_id='comm_add' ) t1 \ No newline at end of file