153
priority *commonpb.Priority,
154
transactionPolicy historyi.TransactionPolicy,
156
>
var sst *durationpb.Duration
157
>
if workflowTaskScheduleToStartTimeout > 0 {
158
sst = durationpb.New(workflowTaskScheduleToStartTimeout)
159
}
161
>
NamespaceId: task.NamespaceID,
162
>
Execution: &commonpb.WorkflowExecution{
163
>
WorkflowId: task.WorkflowID,
164
>
RunId: task.RunID,
165
>
},
166
>
TaskQueue: taskqueue,
167
>
ScheduledEventId: task.ScheduledEventID,
168
>
ScheduleToStartTimeout: sst,
169
>
Clock: vclock.NewVectorClock(t.shardContext.GetClusterMetadata().GetClusterID(), t.shardContext.GetShardID(), task.TaskID),
170
>
VersionDirective: directive,
171
>
Priority: priority,
172
>
Stamp: task.Stamp,
173
>
})
174
>
if _, isNotFound := err.(*serviceerror.NotFound); isNotFound {
175
// NotFound error is not expected for AddTasks calls
176
// but will be ignored by task error handling logic, so log it here