diff --git a/service/history/queues/priority_assigner.go b/service/history/queues/priority_assigner.go index 6bebcbc85b3..7e9e18f9080 100644 --- a/service/history/queues/priority_assigner.go +++ b/service/history/queues/priority_assigner.go @@ -139,7 +139,7 @@ func (a *priorityAssignerImpl) Assign(executable Executable) error { return nil } - ratelimiter := a.getOrCreateRateLimiter(executable.GetNamespaceID()) + ratelimiter := a.getOrCreateRateLimiter(namespaceName) if !ratelimiter.Allow() { executable.SetPriority(tasks.PriorityMedium)