-
Notifications
You must be signed in to change notification settings - Fork 313
Description
v1.2 of the specification introduced a way for tasks to access their own meta, requirements, and hints, but this is not easy to surface to workflows which may also have use of this information.
motivation: I have a WDL workflow which runs runs many tools and later funnels all those task outputs into a MultiQC task which generates a final report for users. MultiQC has a way to annotate those reports with the software version of each tool represented, but as of 1.2 there is no ergonomic way to supply that information from each called task to the final MultiQC task.
alternative: in v1.2, each tool could create an additional output with it's version number (either from task.meta.version or by parsing the task.container) and then the workflow could pass all those outputs into the MultiQC task, however this would add a lot of boilerplate to each task.
proposal: after task execution, there could be implied outputs added to every called task that would be accessed the same way as any other task output. For simplicity, this could just be the existing taskvariable that would persist after execution completes.