Skip to content

Commit 9308010

Browse files
committed
fix(alarms): add thread locking to raise_alarms method
1 parent ef7f776 commit 9308010

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bec_lib/bec_lib/alarm_handler.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ def get_alarm(self, severity=Alarms.WARNING):
154154
for alarm in alarms:
155155
yield alarm
156156

157+
@threadlocked
157158
def raise_alarms(self, severity=Alarms.MAJOR):
158159
"""Raise unhandled alarms with specified severity.
159160

0 commit comments

Comments
 (0)