From c9bf8ce5205cd3804e14ec2c106ff7c907df1175 Mon Sep 17 00:00:00 2001 From: Drew Bailey <2614075+drewbailey@users.noreply.github.com> Date: Wed, 16 Sep 2020 14:13:57 -0400 Subject: [PATCH] abandon current state on server shutdown --- nomad/fsm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/fsm.go b/nomad/fsm.go index e4aeb33b9..0fa730341 100644 --- a/nomad/fsm.go +++ b/nomad/fsm.go @@ -162,6 +162,7 @@ func NewFSM(config *FSMConfig) (*nomadFSM, error) { // Close is used to cleanup resources associated with the FSM func (n *nomadFSM) Close() error { + n.state.Abandon() return nil }