phet commented on code in PR #3899:
URL: https://github.com/apache/gobblin/pull/3899#discussion_r1538714529


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManagementTaskStreamImpl.java:
##########
@@ -86,19 +119,15 @@ public boolean hasNext() {
 
   @Override
   public DagTask next() {
-    /*TODO: this requires use of lease arbiter, in single-active execution 
lease arbiter will not be present and we can
-     provide a dummy LeaseObtainedStatus or create alternate route
-    */
-    if (!this.reminderSettingDagProcLeaseArbiter.isPresent()) {
-      throw new RuntimeException("DagManagement not initialized in 
multi-active execution mode when required.");
+    if (this.isMultiActiveExecutionEnabled && 
!this.dagActionReminderScheduler.isPresent()) {
+      throw new RuntimeException(MISSING_OPTIONAL_ERROR_MESSAGE);

Review Comment:
   couldn't this pre-condition-style check happen in the ctor?



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