This fixes the problem that happens when the top node is in error, and shutdown --force is issued, it will try to drain-dataflow first, which shouldn't happen. The fix in this PR is that sequential command function firstly checks that the command it's trying to execute is valid under the rules of the FSM (irrespective of its error state), and AFTER THAT, checks if the node is in error state and force execute the command if needed.
This fixes the problem that happens when the top node is in error, and
shutdown --force
is issued, it will try todrain-dataflow
first, which shouldn't happen. The fix in this PR is that sequential command function firstly checks that the command it's trying to execute is valid under the rules of the FSM (irrespective of its error state), and AFTER THAT, checks if the node is in error state and force execute the command if needed.