Skip to content

Commit

Permalink
sleep 0.1s before testing redis instance again
Browse files Browse the repository at this point in the history
Originally we fail to sleep 0.1s before retrying.

Change-Id: I454ee9ef07ac8efe34217f2abeeb64a44db7733a
Signed-off-by: Henry-CF <hchen@rbcon.com>
  • Loading branch information
Henry-CF committed Jul 3, 2012
1 parent ae07309 commit ca04f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/lib/redis_service/redis_node.rb
Expand Up @@ -340,14 +340,14 @@ def start_instance(instance, db_file = nil)
redis.echo("")
return pid
rescue => e
sleep 0.1
next
ensure
begin
redis.quit if redis
rescue => e
end
end
sleep 0.1
end
@logger.error("Timeout to start redis server for instance #{instance.name}")
# Stop the instance if it is running
Expand Down

0 comments on commit ca04f5c

Please sign in to comment.