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


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/proc/EnforceFlowFinishDeadlineDagProc.java:
##########
@@ -60,7 +60,9 @@ protected void enforceDeadline(DagManagementStateStore 
dagManagementStateStore,
         DagProcUtils.cancelDagNode(dagNodeToCancel, dagManagementStateStore);
       }
 
-      dag.setFlowEvent(TimingEvent.FlowTimings.FLOW_RUN_DEADLINE_EXCEEDED);
+      DagProcUtils.setAndEmitFlowEvent(eventSubmitter, dag, 
TimingEvent.FlowTimings.FLOW_CANCELLED);
+
+      log.warn("Killing dag {} due to exceeding SLA of {} ms", getDagId(), 
flowFinishDeadline);

Review Comment:
   I like this logging, but maybe let's fold it into:
   ```
   log.info("Found {} DagNodes to cancel (DagId {}).", dagNodesToCancel.size(), 
getDagId());
   ```
   that happens before the attempts to cancel (in case any fail).  `info` level 
is probably sufficient, with `warn` too severe
   
   (also: SLA => deadline)
   



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