优化
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user