add nextflow d30e48d
This commit is contained in:
35
nextflow/tests/agent-output.nf
Normal file
35
nextflow/tests/agent-output.nf
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env nextflow
|
||||
workflow {
|
||||
HELLO | WORLD | view
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Test for agent output mode (NXF_AGENT_MODE=true)
|
||||
*
|
||||
* This test verifies the minimal agent-friendly output format.
|
||||
* Run with: NXF_AGENT_MODE=true nextflow run agent-output.nf
|
||||
*/
|
||||
|
||||
process HELLO {
|
||||
output:
|
||||
stdout
|
||||
|
||||
script:
|
||||
"""
|
||||
echo "Hello from agent mode"
|
||||
"""
|
||||
}
|
||||
|
||||
process WORLD {
|
||||
input:
|
||||
val msg
|
||||
|
||||
output:
|
||||
stdout
|
||||
|
||||
script:
|
||||
"""
|
||||
echo "World received: ${msg}"
|
||||
"""
|
||||
}
|
||||
Reference in New Issue
Block a user