Wait
The Wait task is used when the workflow needs to be paused for an external signal to continue. It is used when the workflow needs to wait and pause for external signals, such as a human intervention (like manual approval) or an event coming from an external source, such as Kafka or SQS.
Definitions
{
"name": "wait_task",
"taskReferenceName": "wait_task_ref",
"type": "WAIT",
"inputParameters": {
"duration": "x days"
}
}
Input Parameters
Attributes | Description |
---|---|
Wait type | Indicates the type of wait period. Supported types include duration, until, and signal.
|
Examples
- UI
- JSON Example
- Add task type
Wait
. - Select the type of wait and its configuration.
{
"name": "wait_task_example",
"taskReferenceName": "wait_task_example_ref",
"inputParameters": {
"duration": "300 seconds"
},
"type": "WAIT"
}
Simple Example
The following wait task waits until Dec 25, 2025 9 am PST. Yes that's right 2025!
{
"name":"wait_until_date",
"taskReferenceName":"wait_until_date_ref",
"taskType": "WAIT",
"inputParameters": {
"until": "2025-12-25 09:00 PST"
}
}