Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
LOFAR2.0
tango
Merge requests
!545
Fix cleaning up event unsubscription maintenance
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Fix cleaning up event unsubscription maintenance
L2SS-1258-fix-unsubscription
into
master
Overview
5
Commits
4
Pipelines
0
Changes
3
All threads resolved!
Hide all comments
Merged
Jan David Mol
requested to merge
L2SS-1258-fix-unsubscription
into
master
2 years ago
Overview
5
Commits
4
Pipelines
0
Changes
3
All threads resolved!
Hide all comments
Expand
Closes
L2SS-1258
0
0
Merge request reports
Compare
master
version 2
80fafaac
2 years ago
version 1
e1617e28
2 years ago
master (base)
and
latest version
latest version
fef98208
4 commits,
2 years ago
version 2
80fafaac
3 commits,
2 years ago
version 1
e1617e28
1 commit,
2 years ago
3 files
+
12
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
tangostationcontrol/tangostationcontrol/devices/temperature_manager.py
+
10
−
3
Options
@@ -137,9 +137,16 @@ class TemperatureManager(LOFARDevice):
super
().
configure_for_off
()
# unsubscribe from all events
for
dev_attr
in
self
.
temp_error_attrs
.
values
():
dev_attr
.
proxy
.
unsubscribe_event
(
dev_attr
.
subscription_id
)
del
dev_attr
for
attr_name
in
list
(
self
.
temp_error_attrs
.
keys
()):
try
:
dev_attr
=
self
.
temp_error_attrs
[
attr_name
]
dev_attr
.
proxy
.
unsubscribe_event
(
dev_attr
.
subscription_id
)
except
Exception
as
e
:
raise
Exception
(
f
"
Failed to unsubscribe from event regarding device
{
dev_attr
.
proxy
.
dev_name
()
}
attribute
{
attr_name
}
"
)
from
e
finally
:
del
self
.
temp_error_attrs
[
attr_name
]
is_alarming_R
=
attribute
(
dtype
=
bool
,
Loading