jack-moseley commented on a change in pull request #2715: [GOBBLIN-860] Process 
flow-level events for setting/retrieving flow status
URL: https://github.com/apache/incubator-gobblin/pull/2715#discussion_r315411302
 
 

 ##########
 File path: 
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/DagManager.java
 ##########
 @@ -618,6 +618,10 @@ private JobStatus pollJobStatus(DagNode<JobExecutionPlan> 
dagNode) {
     synchronized Map<String, Set<DagNode<JobExecutionPlan>>> submitNext(String 
dagId) throws IOException {
       Dag<JobExecutionPlan> dag = this.dags.get(dagId);
       Set<DagNode<JobExecutionPlan>> nextNodes = DagManagerUtils.getNext(dag);
+
+      // Set flow status to running if it isn't already
+      DagManagerUtils.emitFlowEvent(this.eventSubmitter, dag, 
TimingEvent.FlowTimings.FLOW_RUNNING);
 
 Review comment:
   Good point, moved it there

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to