Skip to content

Commit

Permalink
append name of workflow to default outdir_toil
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasu Jaganath committed Jan 28, 2025
1 parent 039f995 commit aa19a85
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sophios/run_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import platform
import traceback
from typing import Dict, List, Optional
from datetime import datetime

try:
import cwltool.main
Expand Down Expand Up @@ -245,7 +246,9 @@ def run_local(args: argparse.Namespace, rose_tree: RoseTree, cachedir: Optional[
# https://github.com/DataBiosphere/toil/blob/6558c7f97fb37c6ef6f469c7ae614109050322f4/src/toil/options/cwl.py#L152
docker_pull = [] # toil supports --force-docker-pull, but not --disable-pull
cmd = ['toil-cwl-runner'] + docker_pull + net + provenance + docker_cmd_ + path_check
cmd += ['--outdir', 'outdir_toil',
now = datetime.now()
date_time = now.strftime("%Y%m%d%H%M%S")
cmd += ['--outdir', f'outdir_toil_{yaml_stem}_{date_time}',
'--jobStore', f'file:./jobStore_{yaml_stem}', # NOTE: This is the equivalent of --cachedir
# TODO: Check --clean, --cleanWorkDir, --restart
'--clean', 'always', # This effectively disables caching, but is reproducible
Expand Down

0 comments on commit aa19a85

Please sign in to comment.