128
executable queues.Executable,
129
task tasks.Task,
131
>
taskType := queues.GetActiveTransferTaskTypeTagValue(task, t.shardContext.ChasmRegistry())
132
>
namespaceTag, replicationState := getNamespaceTagAndReplicationStateByID(
133
>
t.shardContext.GetNamespaceRegistry(),
134
>
task.GetNamespaceID(),
135
>
executable.GetWorkflowID(),
136
>
)
137
>
metricsTags := []metrics.Tag{
138
>
namespaceTag,
139
>
metrics.TaskTypeTag(taskType),
140
>
metrics.OperationTag(taskType), // for backward compatibility
141
>
}
142
>
143
>
if replicationState == enumspb.REPLICATION_STATE_HANDOVER {
144
// TODO: exclude task types here if we believe it's safe & necessary to execute
145
// them during namespace handover.