[ 
https://issues.apache.org/jira/browse/GOBBLIN-2132?focusedWorklogId=930323&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-930323
 ]

ASF GitHub Bot logged work on GOBBLIN-2132:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Aug/24 05:44
            Start Date: 15/Aug/24 05:44
    Worklog Time Spent: 10m 
      Work Description: phet commented on code in PR #4026:
URL: https://github.com/apache/gobblin/pull/4026#discussion_r1717971935


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/proc/DagProcUtils.java:
##########
@@ -199,6 +202,21 @@ private static void 
sendCancellationEvent(Dag.DagNode<JobExecutionPlan> dagNodeT
     jobExecutionPlan.setExecutionStatus(CANCELLED);
   }
 
+  public static void setAndEmitFlowEvent(EventSubmitter eventSubmitter, 
Dag<JobExecutionPlan> dag, String flowEvent) {
+    if (!dag.isEmpty()) {
+      // Every dag node will contain the same flow metadata
+      Config config = DagManagerUtils.getDagJobConfig(dag);
+      Map<String, String> flowMetadata = 
TimingEventUtils.getFlowMetadata(config);
+      dag.setFlowEvent(flowEvent);

Review Comment:
   do we set this, w/o actually persisting it in the store?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 930323)
    Time Spent: 1.5h  (was: 1h 20m)

> set and emit flow running status
> --------------------------------
>
>                 Key: GOBBLIN-2132
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2132
>             Project: Apache Gobblin
>          Issue Type: Bug
>            Reporter: Arjun Singh Bora
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to