Don't overwrite shutdown state on termination
Just a minor quibble and not really impactful.
This commit is contained in:
parent
8c975e5c46
commit
f09849bedf
|
@ -1779,8 +1779,9 @@ def node_keepalive():
|
||||||
# Get past state and update if needed
|
# Get past state and update if needed
|
||||||
if debug:
|
if debug:
|
||||||
logger.out("Get past state and update if needed", state='d', prefix='main-thread')
|
logger.out("Get past state and update if needed", state='d', prefix='main-thread')
|
||||||
|
|
||||||
past_state = zkhandler.read(('node.state.daemon', this_node.name))
|
past_state = zkhandler.read(('node.state.daemon', this_node.name))
|
||||||
if past_state != 'run':
|
if past_state != 'run' and past_state != 'shutdown':
|
||||||
this_node.daemon_state = 'run'
|
this_node.daemon_state = 'run'
|
||||||
zkhandler.write([
|
zkhandler.write([
|
||||||
(('node.state.daemon', this_node.name), 'run')
|
(('node.state.daemon', this_node.name), 'run')
|
||||||
|
|
Loading…
Reference in New Issue