Skip to content

feat: accessing task meta/requirements/hints from calling workflow #722

@a-frantz

Description

@a-frantz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    K-feature(Kind) A new feature request (for issues) or implementation (for PRs)..S02-needs-owner(State) An issue that needs an individual to write an RFC.T-lang(Topic) Issues related to the syntax and semantic of the language itself.Z-specification-change(Metadata) An issue or PR related to a specification change.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions