From 84149d348dfc802224421c237bf8fafc7ee0ab31 Mon Sep 17 00:00:00 2001 From: Yichao Yang Date: Fri, 22 Jul 2022 18:15:11 -0700 Subject: [PATCH] Fix task rate limiting (#3137) --- service/history/queues/priority_assigner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)