From 74568293c3ef79b364903ba19c04dc74a335a46c Mon Sep 17 00:00:00 2001
From: Christian Boettcher <c.boettcher@fz-juelich.de>
Date: Wed, 4 May 2022 14:17:54 +0200
Subject: [PATCH] disable rm for airflow-directory

---
 scripts/deployment.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/deployment.sh b/scripts/deployment.sh
index f83ba9e..c7067d1 100755
--- a/scripts/deployment.sh
+++ b/scripts/deployment.sh
@@ -32,8 +32,8 @@ AIRFLOW_DIR=`pwd`
 echo "Project dir is set to: $AIRFLOW_DIR"
 echo "Proceeding as user $(whoami)"
 
-# clean out the target directory to ensure only new stuff is there
-rm -rf $AIRFLOW_DIR/*
+# clean out the target directory to ensure only new stuff is there | causes race conditions on light deployment, maybe add flag to script?
+# rm -rf $AIRFLOW_DIR/*
 
 # Make the necessary folders for the airflow artefacts and copy the corresponging content
 mkdir -p ./dags ./logs ./plugins ./config ./templates
-- 
GitLab