47
sourceShardKey ClusterShardKey,
48
replicationTask *replicationspb.ReplicationTask,
50
>
return &ExecutableActivityStateTask{
51
>
ProcessToolBox: processToolBox,
52
>
53
>
WorkflowKey: definition.NewWorkflowKey(task.NamespaceId, task.WorkflowId, task.RunId),
54
>
ExecutableTask: NewExecutableTask(
55
>
processToolBox,
56
>
taskID,
57
>
metrics.SyncActivityTaskScope,
58
>
taskCreationTime,
59
>
time.Now().UTC(),
60
>
sourceClusterName,
61
>
sourceShardKey,
62
>
replicationTask,
63
>
),
64
>
req: &historyservice.SyncActivityRequest{
65
>
NamespaceId: task.NamespaceId,
66
>
WorkflowId: task.WorkflowId,
67
>
RunId: task.RunId,
68
>
Version: task.Version,
69
>
ScheduledEventId: task.ScheduledEventId,
70
>
ScheduledTime: task.ScheduledTime,
71
>
StartedEventId: task.StartedEventId,
72
>
StartVersion: task.StartVersion,
73
>
StartedTime: task.StartedTime,
74
>
LastHeartbeatTime: task.LastHeartbeatTime,
75
>
Details: task.Details,
76
>
Attempt: task.Attempt,
77
>
LastFailure: task.LastFailure,
78
>
LastWorkerIdentity: task.LastWorkerIdentity,
79
>
LastStartedBuildId: task.LastStartedBuildId,
80
>
LastStartedRedirectCounter: task.LastStartedRedirectCounter,
81
>
BaseExecutionInfo: task.BaseExecutionInfo,
82
>
VersionHistory: task.VersionHistory,
83
>
FirstScheduledTime: task.FirstScheduledTime,
84
>
LastAttemptCompleteTime: task.LastAttemptCompleteTime,
85
>
Stamp: task.Stamp,
86
>
Paused: task.Paused,
87
>
RetryInitialInterval: task.RetryInitialInterval,
88
>
RetryMaximumInterval: task.RetryMaximumInterval,
89
>
RetryMaximumAttempts: task.RetryMaximumAttempts,
90
>
RetryBackoffCoefficient: task.RetryBackoffCoefficient,
91
>
},
92
>
93
>
batchable: true,
94
>
activityInfos: append(make([]*historyservice.ActivitySyncInfo, 0, 1), &historyservice.ActivitySyncInfo{
95
>
Version: task.Version,
96
>
ScheduledEventId: task.ScheduledEventId,
97
>
ScheduledTime: task.ScheduledTime,
98
>
StartedEventId: task.StartedEventId,
99
>
StartVersion: task.StartVersion,
100
>
StartedTime: task.StartedTime,
101
>
LastHeartbeatTime: task.LastHeartbeatTime,
102
>
Details: task.Details,
103
>
Attempt: task.Attempt,
104
>
LastFailure: task.LastFailure,
105
>
LastWorkerIdentity: task.LastWorkerIdentity,
106
>
VersionHistory: task.VersionHistory,
107
>
LastStartedBuildId: task.LastStartedBuildId,
108
>
LastStartedRedirectCounter: task.LastStartedRedirectCounter,
109
>
FirstScheduledTime: task.FirstScheduledTime,
110
>
LastAttemptCompleteTime: task.LastAttemptCompleteTime,
111
>
Stamp: task.Stamp,
112
>
Paused: task.Paused,
113
>
RetryInitialInterval: task.RetryInitialInterval,
114
>
RetryMaximumInterval: task.RetryMaximumInterval,
115
>
RetryMaximumAttempts: task.RetryMaximumAttempts,
116
>
RetryBackoffCoefficient: task.RetryBackoffCoefficient,
117
>
}),
118
>
}
119
>
}
120
121
func (e *ExecutableActivityStateTask) QueueID() any {