umustafi commented on code in PR #3511:
URL: https://github.com/apache/gobblin/pull/3511#discussion_r880967550


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/UserQuotaManager.java:
##########
@@ -159,6 +179,9 @@ public boolean releaseQuota(Dag.DagNode<JobExecutionPlan> 
dagNode) {
       String proxyUserKey = DagManagerUtils.getUserQuotaKey(proxyUser, 
dagNode);
       decrementQuotaUsage(proxyUserToJobCount, proxyUserKey);
     }
+    String flowGroup = 
ConfigUtils.getString(dagNode.getValue().getJobSpec().getConfig(),
+        ConfigurationKeys.FLOW_GROUP_KEY, "");
+    decrementQuotaUsage(flowGroupToJobCount, 
DagManagerUtils.getFlowGroupQuotaKey(flowGroup, dagNode));
     String serializedRequesters = 
DagManagerUtils.getSerializedRequesterList(dagNode);
     if (serializedRequesters != null) {

Review Comment:
   When should `releaseQuota` be called other than for the tests below to do 
manual testing? Is there a time period during which a quota is enforced ie: 5 
concurrent jobs allowed for group/user X and then we call `releaseQuota` as 
flows finish executing?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to