Pause Pause

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

Pause current execution and wait for a manual approval or a delay

# Examples

id: pause
namespace: io.kestra.tests

tasks:
  - id: pause
    type: io.kestra.core.tasks.flows.Pause
    tasks:
     - id: ko
       type: io.kestra.core.tasks.scripts.Bash
       commands:
        - 'echo "trigger after manual restart"'
  - id: last
    type: io.kestra.core.tasks.debugs.Return
    format: "{{task.id}} > {{taskrun.startDate}}"

# Properties

# delay

  • Type: string
  • Dynamic:
  • Required:
  • Format: duration

Duration of the pause.

If null and no timeout, a manual approval is needed, if not, the delay before continuing the execution

# 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

# timeout

  • Type: string
  • Dynamic:
  • Required:
  • Format: duration

Timeout of the pause.

If null and no delay, a manual approval is needed, else a manual approval is needed before the timeout or the task will fail

# Definitions