Skip to content

Commit

Permalink
Added session.degraded flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Bixler committed Oct 10, 2024
1 parent 6be7815 commit b5a5b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socs/agents/hwp_pid/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ def _get_data_and_publish(self, pid: pd.PID, session: ocs_agent.OpSession):

pid_state = get_pid_state(pid)
if pid_state['healthy']:
pid_state['state'].update({'quality': 'ok'})
session.degraded = False
else:
print('Warning: state monitor degraded')
pid_state['state'].update({'quality': 'degraded'})
session.degraded = True

data['data'].update(pid_state['state'])
session.data.update(pid_state['state'])
Expand Down

0 comments on commit b5a5b41

Please sign in to comment.