AllowFailure AllowFailure

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

Allow a list of task to fail

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

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.core.tasks.scripts.Bash
       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

Definitions