state on dilsc as of 2022-10-03
vector field, but no new state machine yet
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
# *****************************************************************************
|
||||
|
||||
from secop.core import Parameter, FloatRange, BUSY, IDLE, WARN
|
||||
from secop.lib.statemachine import StateMachine, Retry, Stop
|
||||
from secop.lib.statemachine import StateMachine, Retry
|
||||
|
||||
|
||||
class HasConvergence:
|
||||
@ -61,9 +61,8 @@ class HasConvergence:
|
||||
def cleanup(self, state):
|
||||
state.default_cleanup(state)
|
||||
if state.stopped:
|
||||
if state.stopped is Stop: # and not Restart
|
||||
self.status = WARN, 'stopped'
|
||||
else:
|
||||
self.status = WARN, 'stopped'
|
||||
elif not state.restarted:
|
||||
self.status = WARN, repr(state.last_error)
|
||||
|
||||
def doPoll(self):
|
||||
|
Reference in New Issue
Block a user