This commit is contained in:
shenjian@fangjia.com
2023-05-10 11:20:55 +08:00
parent ac063da374
commit db23742520
+4 -4
View File
@@ -27,10 +27,10 @@ with DAG(
# image="my-production-job:release-1.0.1", <-- old release
image="192.168.0.19:9012/comm-add:1.0.1",
image_pull_secrets=[k8s.V1LocalObjectReference("nexus-registry-secret")],
cmds=["Python", "-c"],
arguments=["print('hello world')"],
name="fail",
task_id="failing-task",
cmds=["python", "main.py"],
arguments=["--city", '{{dag_run.conf["city"] if "city" in dag_run.conf}} else all'],
name="comm_add",
task_id="comm_add",
get_logs=True
)