> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bringits.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sleep

> Introduce a delay or pause in the execution of commands

The Sleep command (Command Type: 1008) introduces a configurable delay in the execution pipeline. It is available in the parse scraper context and is useful for rate limiting or waiting between steps.

## 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:** 1008

## Parameters

| Parameter | Type   | Description                               | Required |
| --------- | ------ | ----------------------------------------- | -------- |
| **time**  | number | The duration of the pause in milliseconds | Yes      |

## Usage Examples

### 1 Second Delay

```json theme={null}
{
  "command": "sleep",
  "params": {
    "time": 1000
  }
}
```

### 500ms Delay

```json theme={null}
{
  "command": "sleep",
  "params": {
    "time": 500
  }
}
```

### 5 Second Delay

```json theme={null}
{
  "command": "sleep",
  "params": {
    "time": 5000
  }
}
```

## 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](/stream/commands/parse/json-parse) - Parse data after a delay
* [Http Request](/stream/commands/http/http-request) - Combine with HTTP requests for rate-limited polling
