AllowFailure AllowFailure

type: "io.kestra.core.tasks.flows.AllowFailure"

Allow a task to failed

If any child tasks failed, the flow will stop child tasks, but will continue the main flow.

# Examples

id: allow-failure
namespace: io.kestra.tests

tasks:
  - id: sequential
    type: io.kestra.core.tasks.flows.AllowFailure
    tasks:
     - id: ko
       type: io.kestra.core.tasks.scripts.Bash
       commands:
        - 'exit 1'
  - id: last
    type: io.kestra.core.tasks.debugs.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: ✔️
  • Min items: 1

# Definitions