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


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/Orchestrator.java:
##########
@@ -310,6 +316,17 @@ public void orchestrate(Spec spec) throws Exception {
         flowCompilationTimer.get().stop(flowMetadata);
       }
 
+      // If multi-active scheduler is enabled do not pass onto DagManager, 
otherwise scheduler forwards it directly
+      if (this.isMultiActiveSchedulerEnabled) {
+        String flowExecutionId = 
flowMetadata.get(TimingEvent.FlowEventConstants.FLOW_EXECUTION_ID_FIELD);
+        boolean leaseAttemptSucceeded = 
schedulerLeaseAlgoHandler.handleNewTriggerEvent(jobProps, flowGroup, flowName,
+            flowExecutionId, 
SchedulerLeaseDeterminationStore.FlowActionType.LAUNCH, triggerTimestampMillis);
+        _log.info("scheduler attempted lease on flowGroup: %s, flowName: %s, 
flowExecutionId: %s, LAUNCH event for "
+            + "triggerTimestamp: %s that was " + (leaseAttemptSucceeded ? "" : 
"NOT") + "successful", flowGroup,
+            flowName, flowExecutionId, triggerTimestampMillis);
+        return;

Review Comment:
   That's a good point I'm changing to be 
   
   `if multi-active scheduler ...
   else if dagManager present ...
   else ...`
   



-- 
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