
Core Plugins and tasks AllowFailure
CertifiedLet a block fail without stopping the rest of the flow.
Core Plugins and tasks AllowFailure
Certified
Let a block fail without stopping the rest of the flow.
Runs the nested tasks sequentially; if one fails, remaining siblings in the block are skipped but downstream tasks after AllowFailure continue.
Useful to mark best-effort sections. Combine with allowWarning to downgrade failures inside the block to warnings.
yaml
type: io.kestra.plugin.core.flow.AllowFailureExamples
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 }}"
Allow failure of a group of tasks
yaml
id: allow-failure-demo
namespace: company.team
tasks:
- id: allow_failure
type: io.kestra.plugin.core.flow.AllowFailure
tasks:
- id: fail_silently
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- exit 1
- id: print_to_console
type: io.kestra.plugin.scripts.shell.Commands
taskRunner:
type: io.kestra.plugin.core.runner.Process
commands:
- echo "this will run since previous failure was allowed ✅"
Properties
tasks *RequiredNon-dynamicarray
Min items
1errors Non-dynamicarray
List of tasks to run if any tasks failed on this FlowableTask.
finally Non-dynamicarray
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.