From 567e3386b03122ffcabd8910432df671c587bfc8 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Fri, 24 Apr 2026 15:04:52 +0200 Subject: [PATCH] Default NXF_FUSION_TRACE to false [ci fast] Change the default for the NXF_FUSION_TRACE environment variable from true to false so that Fusion trace-based resource metrics are opt-in. Update the docs accordingly. Signed-off-by: Paolo Di Tommaso Signed-off-by: Paolo Di Tommaso --- docs/reference/env-vars.md | 2 +- modules/nf-commons/src/main/nextflow/Global.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/env-vars.md b/docs/reference/env-vars.md index 908566b754..63c5616742 100644 --- a/docs/reference/env-vars.md +++ b/docs/reference/env-vars.md @@ -126,7 +126,7 @@ The following environment variables control the configuration of the Nextflow ru `NXF_FUSION_TRACE` : :::{versionadded} 26.04.0 ::: -: When set to `true`, collect task resource metrics (CPU, memory, I/O) from the Fusion trace file (`.fusion/trace.json`) produced in the task work directory, replacing the metrics collected by the default bash command-trace wrapper. Requires Fusion to be enabled. GPU metrics from Fusion are always collected regardless of this setting. +: When set to `true`, collect task resource metrics (CPU, memory, I/O) from the Fusion trace file (`.fusion/trace.json`) produced in the task work directory, replacing the metrics collected by the default bash command-trace wrapper. Requires Fusion to be enabled. GPU metrics from Fusion are always collected regardless of this setting. Defaults to `false`. `NXF_HOME` : Nextflow home directory (default: `$HOME/.nextflow`). diff --git a/modules/nf-commons/src/main/nextflow/Global.groovy b/modules/nf-commons/src/main/nextflow/Global.groovy index df8c13e036..74109296f2 100644 --- a/modules/nf-commons/src/main/nextflow/Global.groovy +++ b/modules/nf-commons/src/main/nextflow/Global.groovy @@ -38,7 +38,7 @@ class Global { * When {@code true}, Fusion trace metrics replace the bash command-trace wrapper */ static boolean isFusionTraceEnabled() { - return SysEnv.get('NXF_FUSION_TRACE', 'true') == 'true' + return SysEnv.get('NXF_FUSION_TRACE', 'false') == 'true' } /**