Skip to main content

Step 5: Adding Wait Conditions

Continuing from Step 4

The wait task in Conductor is used if the workflow is to be paused for external signals. The signals can be manual human interventions or an event from external sources such as Kafka, SQS, etc. Let’s learn how to pause your workflows using wait tasks.

Use case: What if we want to send the SMS only after a fixed time?

tip

Orkes Conductor doesn't limit your wait conditions. We can wait for mins, days, months or even years! It can also wait for external signals like manual approval or events from messaging systems such as Kafka/SQS.

  1. In the same workflow from before, add a Wait task before the SMS task.
  2. We can configure the wait task parameters to wait for 10 seconds.
  3. Run workflow directly from the UI using the Run Workflow button.

Since you have configured the wait task to wait for 10 seconds, once the workflow execution reaches this task, it waits for 10 seconds and then proceeds to the next task, sending an SMS.

Try out a longer wait

Try to configure a wait for longer - perhaps 2 days, set a reminder to check back after two days to see if that task is executed. Magic!