Sha256: 2a4056743ce6474e57e8e66827d2ae8ae4c71cbab08201600b66c1132ae0e834

Contents?: true

Size: 1.16 KB

Versions: 12

Compression:

Stored size: 1.16 KB

Contents

module Elasticsearch
  module API
    module Cluster
      module Actions

        # Returns a list of any cluster-level changes (e.g. create index, update mapping, allocate or fail shard)
        # which have not yet been executed and are queued up.
        #
        # @example Get a list of currently queued up tasks in the cluster
        #
        #     client.cluster.pending_tasks
        #
        # @option arguments [Boolean] :local Return local information, do not retrieve the state from master node
        #                                    (default: false)
        # @option arguments [Time] :master_timeout Specify timeout for connection to master
        #
        # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cluster-pending.html
        #
        def pending_tasks(arguments={})
          valid_params = [
            :local,
            :master_timeout ]
          method = HTTP_GET
          path   = "/_cluster/pending_tasks"
          params = Utils.__validate_and_extract_params arguments, valid_params
          body   = nil

          perform_request(method, path, params, body).body
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
elasticsearch-api-1.0.17 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.16 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.16.pre2 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.16.pre lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.15 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.14 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.13 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.12 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.11 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.10 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.9 lib/elasticsearch/api/actions/cluster/pending_tasks.rb
elasticsearch-api-1.0.7 lib/elasticsearch/api/actions/cluster/pending_tasks.rb