File tree Expand file tree Collapse file tree
src/core/fetch_task_execution Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : fetch_task_execution
2+ namespace : core
3+ arguments :
4+ - type : string
5+ name : --input
6+ required : true
7+ direction : input
8+ example : s3://openproblems-nextflow/work/f6/8565066aee4771cc2790b92b4ac660
9+ description : The S3 path to the task execution directory to fetch.
10+ - type : string
11+ name : --aws_profile
12+ required : false
13+ direction : input
14+ description : The AWS profile to use for fetching the task execution directory.
15+ - type : file
16+ name : --output
17+ required : true
18+ direction : output
19+ description : Output directory containing the fetched task execution files.
20+ resources :
21+ - type : bash_script
22+ path : script.sh
23+ engines :
24+ - type : native
25+ runners :
26+ - type : executable
Original file line number Diff line number Diff line change 1+ # # VIASH START
2+ par_input=s3://openproblems-nextflow/work/f6/8565066aee4771cc2790b92b4ac660
3+ par_aws_profile=op
4+ par_output=debug
5+ # # VIASH END
6+
7+ aws s3 sync \
8+ ${par_aws_profile: +--profile $par_aws_profile } \
9+ " $par_input " " $par_output "
10+
11+ cd " $par_output "
12+
13+ sed -i ' s#/home/ec2-user/miniconda/bin/aws#aws#g' .command.run
14+
15+ AWS_DEFAULT_PROFILE=${par_aws_profile} bash .command.run nxf_stage
You can’t perform that action at this time.
0 commit comments