From 4475ce99d7d4b1a13a197b61c9b1b928a2f68cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Vonheiden?= <bjoern.vonheiden@hotmail.de> Date: Fri, 25 Sep 2020 09:44:24 +0200 Subject: [PATCH] Fix not resetting cluster when run uc called with theodolite py --- execution/run_uc.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/execution/run_uc.py b/execution/run_uc.py index dac9ff8e8..fa25f4d86 100644 --- a/execution/run_uc.py +++ b/execution/run_uc.py @@ -553,7 +553,7 @@ def main(exp_id, uc_id, dim_value, instances, partitions, cpu_limit, memory_limi app_jmx, app_deploy, topics) print('---------------------') - # Register the reset operation so that is executed at the end of program + # Register the reset operation so that is executed at the abort of program atexit.register(reset_cluster, wg, app_svc, app_svc_monitor, app_jmx, app_deploy, topics) @@ -581,8 +581,9 @@ def main(exp_id, uc_id, dim_value, instances, partitions, cpu_limit, memory_limi run_evaluation(exp_id, uc_id, dim_value, instances, execution_minutes) print('---------------------') - # Cluster is resetted with atexit method - # reset_cluster(wg, app_svc, app_svc_monitor, app_jmx, app_deploy, topics) + # Reset cluster regular, therefore abort exit not needed anymore + reset_cluster(wg, app_svc, app_svc_monitor, app_jmx, app_deploy, topics) + atexit.unregister(reset_cluster) if __name__ == '__main__': -- GitLab