Skip to content

Commit

Permalink
move update of executionContext to fix resume
Browse files Browse the repository at this point in the history
  • Loading branch information
apriltuesday committed Feb 10, 2022
1 parent 5d77ffb commit 406e361
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ public void open(ExecutionContext executionContext) throws ItemStreamException {
boolean append = false;
this.contigsWriter = new BufferedWriter(new FileWriter(this.contigsOutput, append));
this.variantsWriter = new BufferedWriter(new FileWriter(this.variantsOutput, append));
executionContext.put(IS_HEADER_WRITTEN_KEY, IS_HEADER_WRITTEN_VALUE);
}
}
} catch (IOException e) {
Expand Down Expand Up @@ -176,7 +175,7 @@ private void loadContigMappingFromTemporaryFile(File contigMappingFile) throws I
}

public void update(ExecutionContext executionContext) throws ItemStreamException {

executionContext.put(IS_HEADER_WRITTEN_KEY, IS_HEADER_WRITTEN_VALUE);
}

public void close() throws ItemStreamException {
Expand Down

0 comments on commit 406e361

Please sign in to comment.