From 393da35eb8f5a783a85fa64c4d7c0c6f84a836ec Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 6 Aug 2017 18:00:32 -0700 Subject: [PATCH] Documented wait: true [skip ci] --- README.md | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 14e031d..d37f817 100644 --- a/README.md +++ b/README.md @@ -1214,6 +1214,12 @@ And use: Searchkick.reindex_status(index_name) ``` +You can also have Searchkick wait for reindexing to complete [master] + +```ruby +Searchkick.reindex(async: {wait: true}) +``` + You can use [ActiveJob::TrafficControl](https://github.com/nickelser/activejob-traffic_control) to control concurrency. Install the gem: ```ruby -- libgit2 0.21.0