Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add best practices docs page for handling flow outputs #2024

Open
anna-geller opened this issue Dec 11, 2024 · 0 comments
Open

Add best practices docs page for handling flow outputs #2024

anna-geller opened this issue Dec 11, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@anna-geller
Copy link
Member

Description

Example use case: user wants that a flow outputs either the output of task 1 or the output of task 2 conditionally e.g. take task2 output if task1's output is null

Example flow (for docs, replace those inputs with actual tasks returning something):

id: myflow
namespace: company.team

inputs:
  - id: first
    type: STRING
    required: false
  - id: second
    type: STRING
    defaults: myvalue

tasks:
  - id: final_output
    type: io.kestra.plugin.core.debug.Return
    format: "{{ inputs.first ?? inputs.second }}"

outputs:
  - id: final_flow_output
    type: STRING
    value: "{{ outputs.final_output }}"
@anna-geller anna-geller added the documentation Improvements or additions to documentation label Dec 11, 2024
@kestrabot kestrabot bot added this to Issues Dec 11, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Issues Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Backlog
Development

No branches or pull requests

1 participant