Skip to content

Commit

Permalink
Update DefaultTaskCancellation.java
Browse files Browse the repository at this point in the history
Signed-off-by: Kiran Prakash <[email protected]>
  • Loading branch information
kiranprakash154 committed Aug 29, 2024
1 parent 3ea44d7 commit 0103089
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ private Long getResourceUsage(QueryGroup queryGroup, ResourceType resourceType)
return queryGroupLevelResourceUsageViews.get(queryGroup.get_id()).getResourceUsageData().get(resourceType);
}


private boolean isBreachingThreshold(ResourceType resourceType, Double resourceThresholdInPercentage, long resourceUsage) {
if (resourceType == ResourceType.MEMORY) {
// Check if resource usage is breaching the threshold
Expand Down

0 comments on commit 0103089

Please sign in to comment.