Optional Outputs
See original GitHub issueSupport this:
task foo {
command { ... }
output {
File? optionalOutput = "am_I_even_here.txt"
}
Bonus points? (actually I don’t think I like this):
task foo {
command { ... }
output {
String? optionalOutput = read_string("am_I_even_here.txt")
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Does WDL support optional outputs? #394 - GitHub
If I'm not mistaken cromwell does support optional outputs, just not on certain backends. In the development spec, the section on optional ...
Read more >Optional output - IBM
This optional output includes a control statement listing, a module map, and a cross-reference table. ... Parent topic: Interpreting linkage editor output.
Read more >How to output optional variables in a function? - MathWorks
Hi, I have a function where i want to either output a, b OR c given my input condition which is found in...
Read more >Optional output - Nextflow Patterns
A task in your workflow is expected to not create an output file in some circumstances. Solution. Declare such output as an optional...
Read more >Handling optional outputs - Terra Support
How would one implement optional File output in a task? For example an output file that is only created if a particular option...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dheiman These are all true statements. My point was just filing an issue is no guarantee that anyone will do the work of defining the spec changes and that you have the ability to make it happen now. In effect, what I’m saying is you have more ability now than you did before in that one can continue to wait until someone gets around to it (which was always the case) or one can put forth the effort to make it happen themselves (which is new)
To be clear, this is actually the current cromwell behavior, even though it’s not in the spec, right?