96
queueName string,
97
queue *persistencespb.Queue,
99
>
// Currently, we only have one partition for each queue. However, that might change in the future. If a queue is
100
>
// created with more than 1 partition by a server on a future release, and then that server is downgraded, we
101
>
// will need to handle this case. Since all DLQ tasks are retried infinitely, we just return an error.
102
>
numPartitions := len(queue.Partitions)
103
>
if numPartitions != 1 {
104
return nil, serviceerror.NewInternal(
105
fmt.Sprintf(