Skip to content

Commit

Permalink
feat: 执行引擎任务调度配额限制 TencentBlueKing#261
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Jun 20, 2024
1 parent 2cd10b5 commit 1f4d10e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ public ResourceQuotaCheckResultEnum checkResourceQuotaLimit(String appCode, Reso
Integer checkResourceQuotaResult;
if (isJobFrom3rdApp) {
long appLimit = runningJobResourceQuotaStore.getQuotaLimitByAppCode(appCode);
checkResourceQuotaResult = redisTemplate.execute(script, keyList, resourceScopeLimit, appLimit);
checkResourceQuotaResult = redisTemplate.execute(script, keyList, String.valueOf(resourceScopeLimit),
String.valueOf(appLimit));
} else {
checkResourceQuotaResult = redisTemplate.execute(script, keyList, resourceScopeLimit);
checkResourceQuotaResult = redisTemplate.execute(script, keyList, String.valueOf(resourceScopeLimit));
}

long cost = System.currentTimeMillis() - startTime;
Expand Down

0 comments on commit 1f4d10e

Please sign in to comment.