Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
EasyCloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DSDF
EasyCloud
Commits
ad1631a0
Commit
ad1631a0
authored
4 years ago
by
Massimo Canonico
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.di.unipmn.it:DCS/easycloud
parents
242f460f
7e9c1f3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
easycloud/core/metamonitor.py
+4
-4
4 additions, 4 deletions
easycloud/core/metamonitor.py
with
4 additions
and
4 deletions
easycloud/core/metamonitor.py
+
4
−
4
View file @
ad1631a0
...
...
@@ -79,7 +79,7 @@ class MetaMonitor(ABC):
self
.
_measures_sink_thread
=
None
measures_sinks
=
[]
measures_sink_labels
=
conf
.
get_parameter
(
'
options
'
,
'
measures_sinks
'
,
return_type
=
str
)
if
measures_sink_labels
is
not
None
:
if
measures_sink_labels
:
for
sink
in
measures_sink_labels
.
split
(
'
,
'
):
measures_sink_params
=
conf
.
get_parameters
(
'
measures_sink.
'
+
sink
.
strip
())
if
'
module
'
not
in
measures_sink_params
or
'
class
'
not
in
measures_sink_params
:
...
...
@@ -89,9 +89,9 @@ class MetaMonitor(ABC):
clazz
=
getattr
(
module
,
measures_sink_params
[
'
class
'
])
instance
=
clazz
.
from_conf
(
measures_sink_params
)
measures_sinks
.
append
(
instance
)
self
.
_measures_sink_thread
=
threading
.
Thread
(
target
=
self
.
_measures_sink_runner
,
args
=
(
measures_sinks
,))
##self._measures_sink_thread.setDaemon(True) #FIXME: is this really necessary? It seems that without it, the EasyCloud app blocks on exit
#self._measures_sink_thread.daemon = True #FIXME: is this really necessary? It seems that without it, the EasyCloud app blocks on exit
self
.
_measures_sink_thread
=
threading
.
Thread
(
target
=
self
.
_measures_sink_runner
,
args
=
(
measures_sinks
,))
##self._measures_sink_thread.setDaemon(True) #FIXME: is this really necessary? It seems that without it, the EasyCloud app blocks on exit
#self._measures_sink_thread.daemon = True #FIXME: is this really necessary? It seems that without it, the EasyCloud app blocks on exit
#[ALTERNATIVE #1]
"""
...
...
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