Skip to content

Commit

Permalink
Move creating live instance after carryover current state (#2889)
Browse files Browse the repository at this point in the history
Move creating live instance after carryover current state
  • Loading branch information
frankmu authored Aug 28, 2024
1 parent 321f4eb commit f8a30cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,11 @@ public void handleNewSession() throws Exception {
// This will help to prevent controller from sending any message prematurely.
// Live instance creation also checks if the expected session is valid or not. Live instance
// should not be created by an expired zk session.
createLiveInstance();
if (shouldCarryOver()) {
carryOverPreviousCurrentState(_dataAccessor, _instanceName, _sessionId,
_manager.getStateMachineEngine(), true);
}
createLiveInstance();
removePreviousTaskCurrentStates();

/**
Expand Down

0 comments on commit f8a30cd

Please sign in to comment.