From 1b40264a074f64c915fca18f2002b2cb58590eb9 Mon Sep 17 00:00:00 2001 From: romanoa77 <37339804+romanoa77@users.noreply.github.com> Date: Mon, 16 Sep 2024 20:10:41 +0200 Subject: [PATCH] Update dags_airflow_ale_kopfocal.py --- dags_airflow_ale_kopfocal.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dags_airflow_ale_kopfocal.py b/dags_airflow_ale_kopfocal.py index 02be81b..a9d9541 100644 --- a/dags_airflow_ale_kopfocal.py +++ b/dags_airflow_ale_kopfocal.py @@ -35,7 +35,8 @@ # unique id of the task within the DAG task_id="kubeop", # the Docker image to launch - image="ubuntu", + image="debian", + image_pull_policy="Always", cmds=["bash","-cx"], arguments=["echo","Hello World"], # launch the Pod on the same cluster as Airflow is running on @@ -52,7 +53,7 @@ # reattach to worker instead of creating a new Pod on worker failure reattach_on_restart=True, # delete Pod after the task is finished - is_delete_operator_pod=False, + is_delete_operator_pod=True, # get log stdout of the container as task logs get_logs=True, # log events in case of Pod failure