Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
4475ce99
Commit
4475ce99
authored
4 years ago
by
Björn Vonheiden
Browse files
Options
Downloads
Patches
Plain Diff
Fix not resetting cluster when run uc called with theodolite py
parent
708c18e9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
execution/run_uc.py
+4
-3
4 additions, 3 deletions
execution/run_uc.py
with
4 additions
and
3 deletions
execution/run_uc.py
+
4
−
3
View file @
4475ce99
...
@@ -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__
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment