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 24, 2024
1 parent 9543711 commit ecee316
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,13 @@ public InternalResponse<Map<String, ResourceQuotaLimit>> getResourceQuotaConfig(
@Override
public InternalResponse<RunningJobQuotaUsage> getRunningJobQuotaUsage() {
try {
log.info("getRunningJobQuotaUsage start");
RunningJobQuotaUsage runningJobQuotaUsage = new RunningJobQuotaUsage();
runningJobQuotaUsage.setTotal(runningJobResourceQuotaManager.getRunningJobTotal());
runningJobQuotaUsage.setAppCount(runningJobResourceQuotaManager.getAppRunningJobCount());
runningJobQuotaUsage.setResourceScopeCount(runningJobResourceQuotaManager.getResourceScopeRunningJobCount());
log.info("runningJobQuotaUsage : {}", runningJobQuotaUsage);

return InternalResponse.buildSuccessResp(runningJobQuotaUsage);
} catch (Throwable e) {
log.error("GetRunningJobQuotaUsage error", e);
Expand Down

0 comments on commit ecee316

Please sign in to comment.