Skip to content
Discussion options

You must be logged in to vote

To answer

is there a way to define at the workflow level what the "Outputs" are

first - I don't think there is. A Workflow is just an abstraction to hold templates, which themselves have inputs and outputs.

how can I pull results out from the tasks?

For parameters, you can take inspiration from this test:

node: NodeStatus = next(filter(lambda n: n.display_name == step, model_workflow.status.nodes.values()))
message_out: ModelParameter = next(filter(lambda n: n.name == "message-out", node.outputs.parameters))

The node.outputs follows the spec for Outputs https://argo-workflows.readt…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by elliotgunton
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@elliotgunton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants