diff options
author | Alex Legler <alex@a3li.li> | 2015-02-21 22:35:37 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-02-21 22:35:37 +0100 |
commit | d9e1049bd00c469805779257343b049ff45ff0fe (patch) | |
tree | 39d8fd570cfbae6371d5e4379920dbb8cbb8e0fd | |
parent | Allow 0-9 in list names (diff) | |
download | backend-d9e1049bd00c469805779257343b049ff45ff0fe.tar.gz backend-d9e1049bd00c469805779257343b049ff45ff0fe.tar.bz2 backend-d9e1049bd00c469805779257343b049ff45ff0fe.zip |
Sleep for a second after creating an index to hopefully fix timing issues
-rw-r--r-- | lib/storage.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/storage.rb b/lib/storage.rb index 9045a0b..da9e8ad 100644 --- a/lib/storage.rb +++ b/lib/storage.rb @@ -68,6 +68,9 @@ module Ag::Storage } } }) + + # Give elasticsearch some time to process the new index + sleep 1 end def get_content(message) |