Core Plugins and tasks Return

Core Plugins and tasks Return

Certified

Return a value for debugging purposes.

Render a templated string and return it so you can quickly inspect or reuse values during a flow.

Handy for troubleshooting (the rendered value is logged) or for generating small payloads such as headers or tokens that downstream tasks expect. Combine with template filters to control whitespace or formatting before the value is passed along.

yaml
type: io.kestra.plugin.core.debug.Return
yaml
id: debug_value
namespace: company.team

tasks:
  - id: return
    type: io.kestra.plugin.core.debug.Return
    format: "{{ task.id }} > {{ taskrun.startDate }}"

yaml
id: return
type: io.kestra.plugin.core.debug.Return
id: compute_header
type: io.kestra.plugin.core.debug.Return
format: >-
  {%- if inputs.token is not empty -%}
  Bearer {{ inputs.token }}
  {%- elseif inputs.username is not empty and inputs.password is not empty -%}
  Basic {{ (inputs.username + ':' + inputs.password) | base64encode }}
  {%- endif -%}
Properties

The templated string to render.

Reference (ref) of the pluginDefaults to apply to this task.

The generated string.