From 1f75356c9b4b70fbe3e9bad593df89a48c90c981 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Henning?= <post@soeren-henning.de>
Date: Wed, 27 May 2020 18:47:06 +0200
Subject: [PATCH] Forward execution duration to python analysis script

---
 execution/lag_analysis.py | 2 +-
 execution/run_uc1-new.sh  | 2 +-
 execution/run_uc2-new.sh  | 2 +-
 execution/run_uc3-new.sh  | 2 +-
 execution/run_uc4-new.sh  | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/execution/lag_analysis.py b/execution/lag_analysis.py
index c529853fd..a722edeef 100644
--- a/execution/lag_analysis.py
+++ b/execution/lag_analysis.py
@@ -11,7 +11,7 @@ exp_id =  sys.argv[1]
 benchmark = sys.argv[2]
 dim_value = sys.argv[3]
 instances = sys.argv[4]
-execution_minutes = 5
+execution_minutes = sys.argv[5]
 time_diff_ms = int(os.getenv('CLOCK_DIFF_MS', 0))
 
 #http://localhost:9090/api/v1/query_range?query=sum%20by(job,topic)(kafka_consumer_consumer_fetch_manager_metrics_records_lag)&start=2015-07-01T20:10:30.781Z&end=2020-07-01T20:11:00.781Z&step=15s
diff --git a/execution/run_uc1-new.sh b/execution/run_uc1-new.sh
index 0edb75d00..c54780d59 100755
--- a/execution/run_uc1-new.sh
+++ b/execution/run_uc1-new.sh
@@ -44,7 +44,7 @@ sleep ${EXECUTION_MINUTES}m
 
 # Run eval script
 source ../.venv/bin/activate
-python lag_analysis.py $EXP_ID uc1 $DIM_VALUE $INSTANCES
+python lag_analysis.py $EXP_ID uc1 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
diff --git a/execution/run_uc2-new.sh b/execution/run_uc2-new.sh
index 503c4ffa0..5e2f93076 100755
--- a/execution/run_uc2-new.sh
+++ b/execution/run_uc2-new.sh
@@ -40,7 +40,7 @@ sleep ${EXECUTION_MINUTES}m
 
 # Run eval script
 source ../.venv/bin/activate
-python lag_analysis.py $EXP_ID uc2 $DIM_VALUE $INSTANCES
+python lag_analysis.py $EXP_ID uc2 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
diff --git a/execution/run_uc3-new.sh b/execution/run_uc3-new.sh
index b8c7c20a1..ce2862202 100755
--- a/execution/run_uc3-new.sh
+++ b/execution/run_uc3-new.sh
@@ -44,7 +44,7 @@ sleep ${EXECUTION_MINUTES}m
 
 # Run eval script
 source ../.venv/bin/activate
-python lag_analysis.py $EXP_ID uc3 $DIM_VALUE $INSTANCES
+python lag_analysis.py $EXP_ID uc3 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
diff --git a/execution/run_uc4-new.sh b/execution/run_uc4-new.sh
index ee3aaae98..5ae4cf769 100755
--- a/execution/run_uc4-new.sh
+++ b/execution/run_uc4-new.sh
@@ -43,7 +43,7 @@ sleep ${EXECUTION_MINUTES}m
 
 # Run eval script
 source ../.venv/bin/activate
-python lag_analysis.py $EXP_ID uc4 $DIM_VALUE $INSTANCES
+python lag_analysis.py $EXP_ID uc4 $DIM_VALUE $INSTANCES $EXECUTION_MINUTES
 deactivate
 
 # Stop wl and app
-- 
GitLab