﻿---
title: wait_interval
description: This setting must be a positive integer between 1 and 30. This setting specifies how long to wait between checks to see if the action has completed or...
url: https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/option_wait_interval
products:
  - Elasticsearch
  - Elasticsearch Curator
---

# wait_interval
<note>
  This setting is used by the [allocation](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/allocation), [cluster_routing](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/cluster_routing), [reindex](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/reindex), [replicas](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/replicas), [restore](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/restore), and [snapshot](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/snapshot) actions.
</note>

This setting must be a positive integer between 1 and 30.
This setting specifies how long to wait between checks to see if the action has completed or not.  This number should not be larger than the client [request_timeout](/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/configfile#request_timeout) or the [timeout_override](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/option_timeout_override).  As the default client [request_timeout](/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/configfile#request_timeout) value for is 30, this should be uncommon.
The default value for this setting is `9`, meaning 9 seconds between checks.
This option is generally used in conjunction with [max_wait](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/option_max_wait), which is the maximum amount of time in seconds to wait for the given action to complete.

## [allocation](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/allocation)

```yaml
action: allocation
description: "Apply shard allocation filtering rules to the specified indices"
options:
  key: ...
  value: ...
  allocation_type: ...
  wait_for_completion: False
  max_wait: 300
  wait_interval: 10
filters:
- filtertype: ...
```


## [cluster_routing](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/cluster_routing)

```yaml
action: cluster_routing
description: "Apply routing rules to the entire cluster"
options:
  routing_type:
  value: ...
  setting: enable
  wait_for_completion: True
  max_wait: 300
  wait_interval: 10
```


## [reindex](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/reindex)

```yaml
actions:
  1:
    description: "Reindex index1 into index2"
    action: reindex
    options:
      wait_interval: 9
      max_wait: -1
      request_body:
        source:
          index: index1
        dest:
          index: index2
    filters:
    - filtertype: none
```


## [replicas](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/replicas)

```yaml
action: replicas
description: >- Set the number of replicas per shard for selected
    indices to 'count'
options:
  count: ...
  wait_for_completion: True
  max_wait: 600
  wait_interval: 10
filters:
- filtertype: ...
```


## [restore](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/restore)

```yaml
actions:
  1:
    action: restore
    description: Restore my_index from my_snapshot in my_repository
    options:
      repository: my_repository
      name: my_snapshot
      indices: my_index
      wait_for_completion: True
      max_wait: 3600
      wait_interval: 10
    filters:
    - filtertype: state
      state: SUCCESS
      exclude:
    - filtertype: ...
```


## [snapshot](https://www.elastic.co/elastic/docs-builder/docs/3016/reference/elasticsearch/curator/snapshot)

```yaml
action: snapshot
description: >-
  Snapshot selected indices to 'repository' with the snapshot name or name
  pattern in 'name'.  Use all other options as assigned
options:
  repository: my_repository
  name: my_snapshot
  wait_for_completion: True
  max_wait: 3600
  wait_interval: 10
filters:
- filtertype: ...
```