Skip to content

Commit 039f995

Browse files
vjaganat90Vasu Jaganath
andauthored
Don't copy output to outdir if not using cwltool (PolusAI#319)
* fix upload-artifcat to v4 * Don't copy output to outdir if not using cwltool --------- Co-authored-by: Vasu Jaganath <[email protected]>
1 parent 7ecfab3 commit 039f995

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/sophios/api/pythonapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ def run(self) -> None:
797797

798798
# Finally, since there is an output file copying bug in cwltool,
799799
# we need to copy the output files manually. See comment above.
800-
if args.copy_output_files:
800+
if args.cwl_runner == 'cwltool' and args.copy_output_files:
801801
run_local_module.copy_output_files(self.process_name)
802802

803803
# Process = Union[Step, Workflow]

src/sophios/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def main() -> None:
203203

204204
# Finally, since there is an output file copying bug in cwltool,
205205
# we need to copy the output files manually. See comment above.
206-
if args.copy_output_files:
206+
if args.cwl_runner == 'cwltool' and args.copy_output_files:
207207
run_local.copy_output_files(yaml_stem)
208208

209209

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def run_workflows(yml_path_str: str, yml_path: Path, cwl_runner: str, args: argp
230230

231231
# Finally, since there is an output file copying bug in cwltool,
232232
# we need to copy the output files manually. See comment above.
233-
if args.copy_output_files:
233+
if args.cwl_runner == 'cwltool' and args.copy_output_files:
234234
sophios.run_local.copy_output_files(yaml_stem)
235235

236236

0 commit comments

Comments
 (0)