61
ctx context.Context,
62
executable queues.Executable,
64
>
task := executable.GetTask()
65
>
taskType := queues.GetArchivalTaskTypeTagValue(task)
66
>
tags := []metrics.Tag{
67
>
getNamespaceTagByID(e.shardContext.GetNamespaceRegistry(), task.GetNamespaceID()),
68
>
metrics.TaskTypeTag(taskType),
69
>
// OperationTag is for consistency on tags with other executors,
70
>
// since those tags will be used to emit a common set of metrics.
71
>
metrics.OperationTag(taskType),
72
>
}
73
>
74
>
var err error
75
>
switch task := task.(type) {
76
case *tasks.ArchiveExecutionTask:
77
err = e.processArchiveExecutionTask(ctx, task)