On Thu, Jun 30, 2011 at 06:43:40PM -0400, Keith Bennett wrote: > My problem is that it takes a little time after running riak start or stop > for the operation to complete, and so I have to insert a sleep afterwards so > that the next step in the code is not performed prematurely. Is there a way > using the Ruby Riak client to know for sure whether or not riak is ready for > action? I could loop every fraction of a second, or, if there were a blocking > call, that would be even better. >
I actually patched 'riak start' to block until riak starts in this pull request (that slipped through the cracks on getting merged). https://github.com/basho/riak/pull/26 'riak stop' already blocks, for the record. I'll also get that pull request merged into master. Andrew _______________________________________________ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com