Skip to content
Snippets Groups Projects
Commit fa6d70fa authored by Björn Vonheiden's avatar Björn Vonheiden
Browse files

Fix not resetting cluster when run uc called with theodolite py

parent 33669579
No related branches found
No related tags found
1 merge request!42Integerate theodolite and run uc python scripts
...@@ -553,7 +553,7 @@ def main(exp_id, uc_id, dim_value, instances, partitions, cpu_limit, memory_limi ...@@ -553,7 +553,7 @@ def main(exp_id, uc_id, dim_value, instances, partitions, cpu_limit, memory_limi
app_jmx, app_deploy, topics) app_jmx, app_deploy, topics)
print('---------------------') 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, atexit.register(reset_cluster, wg, app_svc,
app_svc_monitor, app_jmx, app_deploy, topics) 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 ...@@ -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) run_evaluation(exp_id, uc_id, dim_value, instances, execution_minutes)
print('---------------------') print('---------------------')
# Cluster is resetted with atexit method # Reset cluster regular, therefore abort exit not needed anymore
# reset_cluster(wg, app_svc, app_svc_monitor, app_jmx, app_deploy, topics) reset_cluster(wg, app_svc, app_svc_monitor, app_jmx, app_deploy, topics)
atexit.unregister(reset_cluster)
if __name__ == '__main__': if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment