Skip to content

Commit dd6f8f4

Browse files
committed
update in memory orch service
1 parent 9dce30f commit dd6f8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Grpc.IntegrationTests/GrpcSidecar/InMemoryOrchestrationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ public void AddMessage(TaskMessage message)
449449
if (message.Event is ExecutionStartedEvent startEvent)
450450
{
451451
// For restart scenarios, clear the history and reset the state
452-
if (isRestart)
452+
if (isRestart && state.IsCompleted)
453453
{
454454
state.HistoryEventsJson.Clear();
455455
state.ExecutionId = executionId; // Always update the execution ID

0 commit comments

Comments
 (0)