Skip to content

Commit 4bdf8d4

Browse files
committed
add execution debug component
1 parent d2025c2 commit 4bdf8d4

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)