Skip to content

Commit 1f005db

Browse files
committed
feat: Add failed tasks param
1 parent 26c6b0f commit 1f005db

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

modules/local/benchmark_report/main.nf

Lines changed: 4 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,8 @@ 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" : ""
19+
1720
"""
1821
# Set up R environment from renv
1922
export R_LIBS_USER=/project/renv/library/linux-ubuntu-noble/R-4.4/x86_64-pc-linux-gnu
@@ -33,6 +36,7 @@ process BENCHMARK_REPORT {
3336
quarto render main_benchmark_report.qmd \\
3437
-P log_csv:"\$TASK_DIR/"${benchmark_samplesheet} \\
3538
$aws_cost_param \\
39+
$failed_tasks \\
3640
--output-dir .\\
3741
--output benchmark_report.html
3842

nextflow.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ params {
2828
skip_multiqc = false
2929

3030
// Benchmark report options
31-
generate_benchmark_report = false
31+
generate_benchmark_report = 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
@@ -66,7 +66,8 @@ workflow NF_AGGREGATE {
6666
BENCHMARK_REPORT (
6767
SEQERA_RUNS_DUMP.out.run_dump.collect{it[1]},
6868
SEQERA_RUNS_DUMP.out.run_dump.collect{it[0].group},
69-
aws_cur_report
69+
aws_cur_report,
70+
params.remove_failed_tasks
7071
)
7172
ch_versions = ch_versions.mix(BENCHMARK_REPORT.out.versions.first())
7273
}

0 commit comments

Comments
 (0)