Pause
yaml
type: "io.kestra.core.tasks.flows.Pause"
Pause the current execution and wait for a manual approval (changing the task state from the UI) or a delay
Examples
yaml
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
tasks
- Type: array
- SubType: Task
- Dynamic: ❌
- Required: ✔️
- Min items:
1
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
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