Wait
The WAIT task is a no-op task that will remain IN_PROGRESS
until after a certain duration or timestamp, at which point it will be marked as COMPLETED
.
Use Cases
WAIT is used when the workflow needs to wait and pause for an external signal such as a human intervention (like manual approval) or an event coming from external source such as Kafka, SQS or Conductor's internal queueing mechanism.
Some use cases where WAIT task is used:
- Wait for a certain amount of time (e.g. 2 minutes) or until a certain date time (e.g. 12/25/2022 00:00)
- To wait for and external signal coming from an event queue mechanism supported by Conductor
Configuration
The WAIT
task is configured using either duration
or until
in inputParameters
.
inputParameters
name | type | description |
---|---|---|
duration | String | Duration to wait for |
until | String | Timestamp to wait until |
Wait For time duration
Format duration as XhYmZs
, using the duration
key.
Wait until specific date/time
Specify the timestamp using one of the formats, using the until
key.
yyyy-MM-dd HH:mm
yyyy-MM-dd HH:mm z
yyyy-MM-dd
External Triggers
The task endpoint POST /api/task
can be used to update the status of a task to COMPLETED prior to the configured timeout. This is
same technique as prescribed for the HUMAN task.
For cases where no timeout is necessary it is recommended that you use the HUMAN task directly.