From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/ag:master commit in: lib/
Date: Tue, 24 Feb 2015 02:49:56 +0000 (UTC) [thread overview]
Message-ID: <1424746190.92a7b7822e1f65a53b6d1ed66f3fc0b73c639f0d.robbat2@gentoo> (raw)
commit: 92a7b7822e1f65a53b6d1ed66f3fc0b73c639f0d
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 24 02:49:50 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 24 02:49:50 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=92a7b782
Improve sleep code.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
lib/storage.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/storage.rb b/lib/storage.rb
index c054f9e..bf90202 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -87,8 +87,10 @@ module Ag::Storage
})
# Give elasticsearch some time to process the new index
- puts $es.cluster.health
- sleep 1
+ while $es.cluster.health['status'] != 'green' do
+ sleep 0.05
+ puts $es.cluster.health
+ end
end
def get_content(message, filename)
next reply other threads:[~2015-02-24 2:50 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-24 2:49 Robin H. Johnson [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-06-29 19:45 [gentoo-commits] proj/ag:master commit in: lib/ Alex Legler
2015-03-07 21:13 Alex Legler
2015-03-07 21:11 Alex Legler
2015-02-25 10:31 Alex Legler
2015-02-24 3:42 Robin H. Johnson
2015-02-24 3:39 Robin H. Johnson
2015-02-24 3:32 Robin H. Johnson
2015-02-24 3:19 Robin H. Johnson
2015-02-24 3:16 Robin H. Johnson
2015-02-24 3:08 Robin H. Johnson
2015-02-24 3:06 Robin H. Johnson
2015-02-24 3:02 Robin H. Johnson
2015-02-24 2:59 Robin H. Johnson
2015-02-24 2:57 Robin H. Johnson
2015-02-24 2:55 Robin H. Johnson
2015-02-24 2:53 Robin H. Johnson
2015-02-24 2:52 Robin H. Johnson
2015-02-23 23:55 Alex Legler
2015-02-23 23:55 Alex Legler
2015-02-23 20:59 Alex Legler
2015-02-23 20:59 Alex Legler
2015-02-23 0:05 Alex Legler
2015-02-23 0:05 Alex Legler
2015-02-23 0:05 Alex Legler
2015-02-23 0:05 Alex Legler
2015-02-23 0:05 Alex Legler
2015-02-22 23:01 Alex Legler
2015-02-21 21:36 Alex Legler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424746190.92a7b7822e1f65a53b6d1ed66f3fc0b73c639f0d.robbat2@gentoo \
--to=robbat2@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox