Create a subflow execution.
Subflows offer a modular way to reuse workflow logic by calling other flows just like calling a function in a programming language. Restarting a parent flow will restart any subflows that has previously been executed.
type: "io.kestra.plugin.core.flow.subflow"Run a subflow with custom inputs.
id: parent_flow
namespace: company.team
tasks:
- id: call_subflow
type: io.kestra.plugin.core.flow.Subflow
namespace: company.team
flowId: subflow
inputs:
user: Rick Astley
favorite_song: Never Gonna Give You Up
wait: true
transmitFailed: true
YESThe identifier of the subflow to be executed
YES1The namespace of the subflow to be executed
NOfalseFlag specifying whether the subflow should inherit labels from this execution that triggered it.
By default, labels are not passed to the subflow execution. If you set this option to true, the child flow execution will inherit all labels from the parent execution.
YESThe inputs to pass to the subflow to be executed
YESThe labels to pass to the subflow to be executed
YESOutputs from the subflow executions
Specify outputs as key-value pairs to extract any outputs from the subflow execution into output of this task execution.This property is deprecated since v0.15.0, please use the outputs property on the Subflow definition for defining the output values available and exposed to this task execution.
NORETRY_FAILEDNEW_EXECUTIONRETRY_FAILEDAction to take when a failed execution is restarting
- RETRY_FAILED (default): will restart the subflow execution if it's failed.
- NEW_EXECUTION: will create a new subflow execution.""
YES >= 1The revision of the subflow to be executed
By default, the last, i.e., the most recent, revision of the subflow is executed.
YESdate-timeDon't trigger the subflow now but schedule it on a specific date.
NOtrueFlag specifying whether to fail the current execution if the subflow execution fails or is killed.
Note that this option works only if wait is set to true.
NOtrueFlag specifying whether to wait for the subflow execution to finish before continuing the current execution.
The subflow execution ID
The outputs returned by the subflow exectution
CREATEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTThe final state of the subflow execution
This output is only available if wait is set to true.