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


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/proc/DagProc.java:
##########
@@ -63,13 +64,16 @@ public DagProc(DagTask dagTask) {
     this.dagNodeId = this.dagTask.getDagAction().getDagNodeId();
   }
 
-  public final void process(DagManagementStateStore dagManagementStateStore) 
throws IOException {
-    T state = initialize(dagManagementStateStore);   // todo - retry
-    act(dagManagementStateStore, state);   // todo - retry
+  public final void process(DagManagementStateStore dagManagementStateStore,
+      DagProcessingEngineMetrics dagProcEngineMetrics) throws IOException {
+    T state = initialize(dagManagementStateStore, dagProcEngineMetrics);   // 
todo - retry
+    act(dagManagementStateStore, state, dagProcEngineMetrics);   // todo - 
retry

Review Comment:
   I wrapped the calls for `initialize` since it's a relatively simple 
function, but `act` would be a little more complicated because there are 
multiple points of failure. I would have to change the API to return a boolean 
perhaps indicating whether or not `act` was successful because there are 
failure cases that do not result in an exception being thrown.



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