This commit is contained in:
shenjian@fangjia.com
2023-05-10 09:40:42 +08:00
parent 7313a03f76
commit 6c3ef4ebbe
+5 -1
View File
@@ -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