Browse Source

add exec action

master
lework 5 years ago
parent
commit
a58dbc9171
  1. 4
      python/supervisor_healthCheck.py

4
python/supervisor_healthCheck.py

@ -290,10 +290,10 @@ class HealthCheck(object):
if not check_state[program]['action'] or ( if not check_state[program]['action'] or (
check_state[program]['failure'] != 0 and check_state[program]['failure'] % (periodSeconds * 2) == 0): check_state[program]['failure'] != 0 and check_state[program]['failure'] % (periodSeconds * 2) == 0):
action_param = { action_param = {
'action_type': action_type, 'action_type': action_type,
'check_result': check_result.get('msg', ''), 'check_result': check_result.get('msg', ''),
'action_exec_cmd': action_exec_cmd 'action_exec_cmd': action_exec_cmd
} }
self.action(program, **action_param) self.action(program, **action_param)
check_state[program]['action'] = True check_state[program]['action'] = True

Loading…
Cancel
Save