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

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

                Author: ASF GitHub Bot
            Created on: 17/Jul/24 19:02
            Start Date: 17/Jul/24 19:02
    Worklog Time Spent: 10m 
      Work Description: umustafi commented on code in PR #4002:
URL: https://github.com/apache/gobblin/pull/4002#discussion_r1681590136


##########
gobblin-service/src/main/java/org/apache/gobblin/service/modules/orchestration/proc/LaunchDagProc.java:
##########
@@ -69,6 +69,10 @@ protected Optional<Dag<JobExecutionPlan>> 
initialize(DagManagementStateStore dag
       Optional<Dag<JobExecutionPlan>> dag = 
this.flowCompilationValidationHelper.createExecutionPlanIfValid(flowSpec).toJavaUtil();
       if (dag.isPresent()) {
         dagManagementStateStore.checkpointDag(dag.get());
+        // Delete adhoc flowSpecs from catalog after checkpointing the dag to 
be worked on
+        if (!flowSpec.isScheduled()) {
+          dagManagementStateStore.removeFlowSpec(flowSpec);

Review Comment:
   good catch, moved it to the LaunchDagTask conclude 





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

    Worklog Id:     (was: 926393)
    Time Spent: 1h 10m  (was: 1h)

> Delete adhoc flowSpecs from FlowCatalog for DagProcEngine
> ---------------------------------------------------------
>
>                 Key: GOBBLIN-2111
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-2111
>             Project: Apache Gobblin
>          Issue Type: Bug
>          Components: gobblin-service
>            Reporter: Urmi Mustafi
>            Assignee: Abhishek Tiwari
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> DagProcessingEngine fails to remove adhoc flow specs from catalog after 
> checkpointing the dag. 



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

Reply via email to