Skip to content

Commit 627659b

Browse files
Auto-disable ANSI log in agent mode for plain, parseable output
Task hashes and submission lines flow through ConsoleAppender instead of being captured and suppressed. Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com> Signed-off-by: Edmund Miller <edmund.miller@seqera.io>
1 parent 820c8c8 commit 627659b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/nextflow/src/main/groovy/nextflow/cli/CliOptions.groovy

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ class CliOptions {
118118
if( noColor ) {
119119
return ansiLog = false
120120
}
121+
122+
// Disable ANSI log in agent mode for plain, parseable output
123+
if( SysEnv.isAgentMode() ) {
124+
return ansiLog = false
125+
}
126+
121127
return Ansi.isEnabled()
122128
}
123129

0 commit comments

Comments
 (0)