Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Insite
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
In Situ Pipeline
Insite
Commits
d74b229a
Commit
d74b229a
authored
3 years ago
by
Marcel Krüger
Browse files
Options
Downloads
Patches
Plain Diff
refactor(access-node): disable LRU caches for MM
parent
53d1c6fb
No related branches found
No related tags found
No related merge requests found
Pipeline
#164117
failed
3 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
126
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
access-node/access_node/controllers/nest_controller.py
+2
-2
2 additions, 2 deletions
access-node/access_node/controllers/nest_controller.py
with
2 additions
and
2 deletions
access-node/access_node/controllers/nest_controller.py
+
2
−
2
View file @
d74b229a
...
@@ -50,7 +50,7 @@ def nest_get_multimeter_by_id(multimeter_id): # noqa: E501
...
@@ -50,7 +50,7 @@ def nest_get_multimeter_by_id(multimeter_id): # noqa: E501
return
response
,
500
return
response
,
500
@lru_cache
(
maxsize
=
32
)
#
@lru_cache(maxsize=32)
def
nest_get_nodes_by_multimeter_id
(
multimeter_id
):
def
nest_get_nodes_by_multimeter_id
(
multimeter_id
):
mult_info
=
nest_get_multimeters
()
mult_info
=
nest_get_multimeters
()
...
@@ -142,7 +142,7 @@ def nest_get_multimeter_measurements(multimeter_id, attribute_name, from_time=No
...
@@ -142,7 +142,7 @@ def nest_get_multimeter_measurements(multimeter_id, attribute_name, from_time=No
return
ConnexionResponse
(
status_code
=
200
,
content_type
=
'
application/json
'
,
mimetype
=
'
text/plain
'
,
body
=
json_string
)
return
ConnexionResponse
(
status_code
=
200
,
content_type
=
'
application/json
'
,
mimetype
=
'
text/plain
'
,
body
=
json_string
)
# return measurement
# return measurement
@lru_cache
(
maxsize
=
32
)
#
@lru_cache(maxsize=32)
def
nest_get_multimeters
():
# noqa: E501
def
nest_get_multimeters
():
# noqa: E501
"""
Retreives the available multimeters and their properties.
"""
Retreives the available multimeters and their properties.
...
...
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