Interval
Last updated
Was this helpful?
Last updated
Was this helpful?
The Interval action step is used to execute all successive action steps at a given interval. For example, you can use it to execute a set of actions every 5 seconds.
Here's how you can configure an Interval action:
Create a new action, add an Interval as the first step, and set the Interval in milliseconds, for example: 5000.
Add a second step to this action and select a Load Table/HTTP Request action step.
Now, run the action.
You will notice that the second step in the action is executed every 5 seconds (or your custom interval) and the action itself continues running.
There are also two settings you can configure for this action:
Cancel interval when condition is met
You can use it to specify the condition for the Interval action to stop. For example, you can use a Toggle component's value - {{ui.toggle.value}}
to stop the action step when the toggle is set to true
:
Avoid proceeding to the next interval if the current one remains unfinished
By enabling this setting you can make sure that the Interval action will wait for the previous interval to finish before proceeding to the next one. It's useful when you want the requests to be executed in a specific order, say finish the previous request first before executing the next one.