Overview
The Sleep command provides functionality for:- Pausing execution for a specified number of milliseconds
- Rate limiting command execution to avoid overloading downstream systems
- Adding deliberate delays between processing steps
Command Type
Command Type ID: 1008Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| time | number | The duration of the pause in milliseconds | Yes |
Usage Examples
1 Second Delay
500ms Delay
5 Second Delay
Common Use Cases
- Rate Limiting: Slow down processing to respect API rate limits
- Polling Intervals: Wait between polling cycles in scraper pipelines
- Debouncing: Introduce a delay before processing rapidly arriving updates
Related Commands
- JSON Parse - Parse data after a delay
- Http Request - Combine with HTTP requests for rate-limited polling