File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
modules/local/benchmark_report Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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'
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments