Open aringeri opened 3 months ago
I thought we fixed this with #3901
Does it work if you change the process input to just the enum value?
input:
val(myEnum)
Hi @bentsherman , Thanks for your suggestion. It will succeed if I change the input and output to:
input:
val(myEnum)
output:
path('out.txt')
but my use case is really more to use enums to tell me something about the data I'm working with (then execute different commands conditionally based on that enum).
This minimal workflow is more characteristic of what I'm trying to do and still produces the error:
workflow {
ch = Channel.of(
tuple([type: MyEnum.A], "data-file-1"),
tuple([type: MyEnum.B], "data-file-2")
)
SomeTask(ch)
}
process SomeTask {
input:
tuple val(meta), val(data)
output:
tuple val(meta), path('out.txt')
script:
"""
echo "hello $data" > out.txt
"""
}
Bug report
(Please follow this template replacing the text between parentheses with the requested information)
Expected behavior and actual behavior
When running the following pipeline we would expect the resume mechanism to work without recomputing the values from the process.
Steps to reproduce the problem
In
./lib/MyEnum.groovy
filein
main.nf
fileRunning:
Program output
Environment
Additional context