AllowFailure AllowFailure

yaml
type: "io.kestra.core.tasks.flows.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: io.kestra.tests

tasks:
  - id: sequential
    type: io.kestra.core.tasks.flows.AllowFailure
    tasks:
     - id: ko
       type: io.kestra.plugin.scripts.shell.Commands
       commands:
        - 'exit 1'
  - id: last
    type: io.kestra.core.tasks.debugs.Return
    format: "{{ task.id }} > {{ taskrun.startDate }}"

Properties

tasks

  • Type: array
  • SubType: Task
  • Dynamic:
  • Required: ✔️
  • Min items: 1

errors

  • Type: array
  • SubType: Task
  • Dynamic:
  • Required:

List of tasks to run if any tasks failed on this FlowableTask.

Was this page helpful?