Commit 393da35eb8f5a783a85fa64c4d7c0c6f84a836ec
1 parent
08372061
Exists in
master
and in
19 other branches
Documented wait: true [skip ci]
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
README.md
@@ -1214,6 +1214,12 @@ And use: | @@ -1214,6 +1214,12 @@ And use: | ||
1214 | Searchkick.reindex_status(index_name) | 1214 | Searchkick.reindex_status(index_name) |
1215 | ``` | 1215 | ``` |
1216 | 1216 | ||
1217 | +You can also have Searchkick wait for reindexing to complete [master] | ||
1218 | + | ||
1219 | +```ruby | ||
1220 | +Searchkick.reindex(async: {wait: true}) | ||
1221 | +``` | ||
1222 | + | ||
1217 | You can use [ActiveJob::TrafficControl](https://github.com/nickelser/activejob-traffic_control) to control concurrency. Install the gem: | 1223 | You can use [ActiveJob::TrafficControl](https://github.com/nickelser/activejob-traffic_control) to control concurrency. Install the gem: |
1218 | 1224 | ||
1219 | ```ruby | 1225 | ```ruby |