arjun4084346 commented on code in PR #3952:
URL: https://github.com/apache/gobblin/pull/3952#discussion_r1613832852


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManagementTaskStreamImpl.java:
##########
@@ -197,9 +193,11 @@ private void 
createFlowFinishDeadlineTrigger(DagActionStore.DagAction dagAction)
    */
   private LeaseAttemptStatus retrieveLeaseStatus(DagActionStore.DagAction 
dagAction)
       throws IOException, SchedulerException {
-    // TODO: need to handle reminder events and flag them
+    // Uses reminder flag to determine whether to use current time as event 
time or previously saved event time
     LeaseAttemptStatus leaseAttemptStatus = 
this.dagActionProcessingLeaseArbiter
-        .tryAcquireLease(dagAction, System.currentTimeMillis(), 
dagAction.isReminder, false);
+        .tryAcquireLease(dagAction,
+            dagAction.isReminder && dagAction.getEventTimeMillis() != 0L ? 
dagAction.getEventTimeMillis() : System.currentTimeMillis(),
+            dagAction.isReminder, false);

Review Comment:
   lets remove isReminderEvent parameter from tryAcquireLease



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