Will-Lo commented on code in PR #4047:
URL: https://github.com/apache/gobblin/pull/4047#discussion_r1746189693


##########
gobblin-temporal/src/main/java/org/apache/gobblin/temporal/ddm/activity/impl/GenerateWorkUnitsImpl.java:
##########
@@ -73,13 +77,22 @@ public int generateWorkUnits(Properties jobProps, 
EventSubmitterContext eventSub
       // before embarking on (potentially expensive) WU creation, first 
pre-check that the FS is available
       FileSystem fs = JobStateUtils.openFileSystem(jobState);
       fs.mkdirs(workDirRoot);
-
-      List<WorkUnit> workUnits = generateWorkUnitsForJobState(jobState, 
eventSubmitterContext, closer);
-
+      boolean canCleanUpTempDirs = false; // unlike `AbstractJobLauncher` 
running the job end-to-end, this is Work Discovery only, so WAY TOO SOON for 
cleanup
+      DestinationDatasetHandlerService datasetHandlerService = closer.register(
+          new DestinationDatasetHandlerService(jobState, canCleanUpTempDirs, 
eventSubmitterContext.create()));

Review Comment:
   Ah its because my first iteration of this had a refactor of the dataset 
handler service which I reverted after some thought, will change back



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