Skip to content

Commit 974f6de

Browse files
committed
feat: Add failed tasks param
1 parent af45928 commit 974f6de

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

modules/local/benchmark_report/main.nf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ process BENCHMARK_REPORT {
66
path run_dumps
77
val groups
88
path benchmark_aws_cur_report
9+
val remove_failed_tasks
910

1011
output:
1112
path "benchmark_report.html" , emit: benchmark_html
@@ -14,6 +15,7 @@ process BENCHMARK_REPORT {
1415
script:
1516
def aws_cost_param = benchmark_aws_cur_report ? "--profile cost -P aws_cost:\$TASK_DIR/${benchmark_aws_cur_report}" : ""
1617
def benchmark_samplesheet = "benchmark_samplesheet.csv"
18+
def failed_tasks = remove_failed_tasks ? "-P remove_failed_tasks: true" : ""
1719

1820
"""
1921
# Set up R environment from renv
@@ -36,6 +38,7 @@ process BENCHMARK_REPORT {
3638
quarto render main_benchmark_report.qmd \\
3739
-P log_csv:"\$TASK_DIR/"${benchmark_samplesheet} \\
3840
$aws_cost_param \\
41+
$failed_tasks \\
3942
--output-dir .\\
4043
--output benchmark_report.html
4144

nextflow.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ params {
3030
// Benchmark report options
3131
run_benchmark = false
3232
benchmark_aws_cur_report = null
33+
remove_failed_tasks = true
3334

3435
// Boilerplate options
3536
outdir = 'results'

nextflow_schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@
8080
"description": "AWS CUR report from data exports.",
8181
"pattern": "^\\S+\\.parquet",
8282
"format": "file-path"
83+
},
84+
"remove_failed_tasks": {
85+
"type": "boolean",
86+
"fa_icon": "fas fa-times-circle",
87+
"description": "Remove failed tasks from the benchmark report."
8388
}
8489
},
8590
"required": ["seqera_api_endpoint"]

workflows/nf_aggregate/main.nf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ workflow NF_AGGREGATE {
9696
BENCHMARK_REPORT (
9797
SEQERA_RUNS_DUMP.out.run_dump.collect{it[1]},
9898
SEQERA_RUNS_DUMP.out.run_dump.collect{it[0].group},
99-
aws_cur_report
99+
aws_cur_report,
100+
params.remove_failed_tasks
100101
)
101102
}
102103

0 commit comments

Comments
 (0)