优化
This commit is contained in:
@@ -27,10 +27,10 @@ with DAG(
|
|||||||
# image="my-production-job:release-1.0.1", <-- old release
|
# image="my-production-job:release-1.0.1", <-- old release
|
||||||
image="192.168.0.19:9012/comm-add:1.0.1",
|
image="192.168.0.19:9012/comm-add:1.0.1",
|
||||||
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
|
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
|
||||||
cmds=["Python", "-c"],
|
cmds=["python", "main.py"],
|
||||||
arguments=["print('hello world')"],
|
arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf}} else all'],
|
||||||
name="fail",
|
name="comm_add",
|
||||||
task_id="failing-task",
|
task_id="comm_add",
|
||||||
get_logs=True
|
get_logs=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user