Skip to content

Commit

Permalink
change unit for timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jul 11, 2019
1 parent 7f508a9 commit a4a4b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/indexable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def start_aliases
self.__elasticsearch__.create_index!(index: alternate_index_name) unless self.__elasticsearch__.index_exists?(index: alternate_index_name)

# copy old index to first of the new indexes, delete the old index, and alias the old index
client.reindex(body: { source: { index: alias_name }, dest: { index: index_name } }, timeout: 300, wait_for_completion: false)
client.reindex(body: { source: { index: alias_name }, dest: { index: index_name } }, timeout: "10m", wait_for_completion: false)

"Created indexes #{index_name} (active) and #{alternate_index_name}."
"Started reindexing in #{index_name}."
Expand Down

0 comments on commit a4a4b1a

Please sign in to comment.