868
// by processing a replication task from a cluster that has state transition disabled
869
len(executionInfo.TransitionHistory) > 0 {
871
>
transitionHistory := executionInfo.TransitionHistory
872
>
return []tasks.Task{&tasks.SyncVersionedTransitionTask{
873
>
WorkflowKey: workflowKey,
874
>
ArchetypeID: archetypeID,
875
>
Priority: enumsspb.TASK_PRIORITY_LOW,
876
>
VersionedTransition: transitionhistory.LastVersionedTransition(transitionHistory),
877
>
FirstEventID: executionInfo.LastFirstEventId,
878
>
FirstEventVersion: lastItem.GetVersion(),
879
>
NextEventID: nextEventID,
880
>
TaskEquivalents: taskEquivalents,
881
>
TargetClusters: targetClusters,
882
>
IsForceReplication: true,
883
>
}}, 1, nil
884
>
}
885
if !isWorkflow {
886
return nil, 0, softassert.UnexpectedInternalErr(r.logger, "state-based replication not enabled for chasm execution", nil,