Skip to content

Commit ec8135c

Browse files
committed
Improve resume for ReadsetInitTask
1 parent 504846c commit ec8135c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ReadsetInitTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ private static void moveInputToAnalysisDir(File input, SequenceJob job, Collecti
472472
input.delete();
473473
alreadyMoved = true;
474474
}
475+
else if (input.exists() && input.length() > output.length() && input.lastModified() == output.lastModified())
476+
{
477+
job.getLogger().info("Output exists with same timestamp, but with smaller file size. This probably indicates a truncated/failed copy. Deleting this file.");
478+
output.delete();
479+
}
475480
else
476481
{
477482
throw new PipelineJobException("A file with the expected output name already exists: " + output.getPath());

0 commit comments

Comments
 (0)