传参
This commit is contained in:
@@ -21,7 +21,11 @@ with DAG(
|
|||||||
# 临沂为我们的传参,python代码中, 镜像中部分代码
|
# 临沂为我们的传参,python代码中, 镜像中部分代码
|
||||||
# @ click.command()
|
# @ click.command()
|
||||||
# @ click.option('--city', default="all", help='要计算的城市')
|
# @ 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'
|
task_id='comm_add'
|
||||||
)
|
)
|
||||||
t1
|
t1
|
||||||
Reference in New Issue
Block a user