AllowFailure
AllowFailure
yaml
type: "io.kestra.plugin.core.flow.AllowFailure"
Allow a list of tasks to fail without stopping the execution of downstream tasks in the flow.
If any child task of the AllowFailure
task fails, the flow will stop executing this block of tasks (i.e. the next tasks in the AllowFailure
block will no longer be executed), but the flow execution of the tasks, following the AllowFailure
task, will continue.
Examples
yaml
id: allow_failure
namespace: company.team
tasks:
- id: sequential
type: io.kestra.plugin.core.flow.AllowFailure
tasks:
- id: ko
type: io.kestra.plugin.scripts.shell.Commands
commands:
- 'exit 1'
- id: last
type: io.kestra.plugin.core.debug.Return
format: "{{ task.id }} > {{ taskrun.startDate }}"
Properties
errors
- Type: array
- SubType: Task
- Dynamic: ❌
- Required: ❌
List of tasks to run if any tasks failed on this FlowableTask.
tasks
- Type: array
- SubType: Task
- Dynamic: ❌
- Required: ❌
Was this page helpful?