elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Elasticsearch::API::Cluster::Actions#pending_tasks
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.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Elasticsearch--API--Cluster--Actions-pending_tasks-for-pr
# Commit to gitgit add elasticsearch-api/lib/elasticsearch/api/actions/cluster/pending_tasks.rbgit commit -m "better docs for Elasticsearch::API::Cluster::Actions#pending_tasks"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Elasticsearch--API--Cluster--Actions-pending_tasks-for-pr
hub pull-request
# Celebrate!