Skip to content

Commit

Permalink
Merge 20.3.0 to develop
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-tchad committed Mar 19, 2020
2 parents 5b38cb6 + e9d7aa0 commit 7919ff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,21 +199,7 @@ else if (experiments.size() > 1)
// DataFileUrl in exp.data and FilePathRoot in exp.experimentRun point to locations in the 'export' directory.
// We are now copying all files from the source container to the target container file root. Update the paths
// to point to locations in the target container file root, and delete the 'export' directory
if(updateDataPaths(target, service, user, job.getLogger()))
{
// Delete the 'export' directory
// 'export' directory is written to a local temp location if the target container is cloud-based,
// and gets deleted after the pipeline job finishes successfully.
if(!service.isCloudRoot(target))
{
File exportdir = jobSupport.getExportDir();
if (exportdir.exists() && !FileUtil.deleteDir(exportdir))
{
job.getLogger().warn("Failed to delete export directory: " + exportdir);
}
}
}
else
if(!updateDataPaths(target, service, user, job.getLogger()))
{
throw new PipelineJobException("Unable to update all data file paths.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ public CopyExperimentPipelineJob(ViewBackgroundInfo info, PipeRoot root, Experim
if (null == targetRoot)
throw new NotFoundException("Cannot find target pipeline root.");

LocalDirectory localDirectory = LocalDirectory.create(targetRoot, PanoramaPublicModule.NAME, baseLogFileName,
!targetRoot.isCloudRoot() ? targetRoot.getRootPath().getAbsolutePath() : FileUtil.getTempDirectory().getPath());
// CONSIDER: Add a static factory method to LocalDirectory instead of using the constructor.
// create(@NotNull PipeRoot root, @NotNull String moduleName, @NotNull String baseLogFileName, @NotNull String localDirPath, boolean temporary)
LocalDirectory localDirectory = new LocalDirectory(targetRoot.getContainer(), PanoramaPublicModule.NAME, root, baseLogFileName);

setLocalDirectory(localDirectory);
setLogFile(localDirectory.determineLogFile());

Expand Down

0 comments on commit 7919ff5

Please sign in to comment.