Skip to content

Commit

Permalink
Fix for concurrentExecLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
manan164 committed May 23, 2024
1 parent 31e2024 commit 1f2988f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public boolean exceedsLimit(TaskModel task) {
jedisProxy.zaddnx(rateLimitKey, score, taskId);
recordRedisDaoRequests("checkTaskRateLimiting", task.getTaskType(), task.getWorkflowType());

Set<String> ids = jedisProxy.zrangeByScore(rateLimitKey, 0, score + 1, limit);
Set<String> ids = jedisProxy.zrangeByScore(rateLimitKey, 0, score + 1, Integer.MAX_VALUE);
boolean rateLimited = !ids.contains(taskId);
if (rateLimited) {
LOGGER.info(
Expand Down

0 comments on commit 1f2988f

Please sign in to comment.