Skip to content

Commit

Permalink
fix file closing not to overwrite files when running in chunked mode (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles authored Apr 3, 2024
1 parent 9dd9522 commit ebdc0c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rail/core/stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ def _finalize_tag(self, tag):
"""
handle = self.get_handle(tag, allow_missing=True)
if self.config.output_mode == 'default':
handle.write()
if not os.path.exists(handle.path) or not handle.partial:
handle.write()
final_name = PipelineStage._finalize_tag(self, tag)
handle.path = final_name
return final_name

0 comments on commit ebdc0c3

Please sign in to comment.