question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support 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:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
geoffjentrycommented, Oct 27, 2017

@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)

0reactions
jtratnercommented, Aug 12, 2019

To be clear, this is actually the current cromwell behavior, even though it’s not in the spec, right?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found