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