Errors
This flow will always fail, this will be handled by the errors
branch tasks (cleaning a resource for example). All kinds of tasks can be used on the errors
branch.
yaml
id: errors
namespace: io.kestra.demo
description: |
This flow will always fail, this will be handled by the `errors` branch tasks (cleaning a resource for example).
All kinds of tasks can be used on the `errors` branch.
tasks:
- id: failed
type: io.kestra.core.tasks.scripts.Bash
commands:
- "exit 1"
errors:
- id: parallel
type: io.kestra.core.tasks.flows.Parallel
tasks:
- id: error1
type: io.kestra.core.tasks.debugs.Echo
format: "running error {{task.id}}"
- id: error2
type: io.kestra.core.tasks.debugs.Echo
format: "running error {{task.id}}"