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


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManagementTaskStreamImpl.java:
##########
@@ -124,9 +135,16 @@ public DagTask next() {
       while (true) {
         try {
           DagActionStore.DagAction dagAction = this.dagActionQueue.take();
-          LeaseAttemptStatus leaseAttemptStatus = 
retrieveLeaseStatus(dagAction);
-          if (leaseAttemptStatus instanceof 
LeaseAttemptStatus.LeaseObtainedStatus) {
-            return createDagTask(dagAction, 
(LeaseAttemptStatus.LeaseObtainedStatus) leaseAttemptStatus);
+          // create triggers for original (non-reminder) dag actions of type 
ENFORCE_START_DEADLINE and ENFORCE_FINISH_DEADLINE

Review Comment:
   nit: update the names here to be ENFORCE_JOB_START and ENFORCE_FLOW_FINISH...
   this comment is not insightful enough because we can see the triggers are 
created instead 
   `reminder triggers are used to inform hosts once the deadline for  
ENFORCE_JOB_START and ENFORCE_FLOW_FINISH... passes. then only is lease 
arbitration done to enforce the deadline violation and fail the job or flow if 
needed`



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