Samer Masry
2009-Jan-16 23:40 UTC
[Backgroundrb-devel] What is the best way to test if the server is up?
This returns true even though the brdb server is down MiddleMan.backend_connections.first.connection_status => true I can just attempt to create a new worker and catch "BackgrounDRb::NoServerAvailable", but is there a better way than this? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20090116/b17480a1/attachment.html>
Samer Masry
2009-Jan-17 00:26 UTC
[Backgroundrb-devel] What is the best way to test if the server is up?
MiddleMan.backend_connections.first.connection_status will return false when I call if from the rails instance rather than the console. On Fri, Jan 16, 2009 at 3:40 PM, Samer Masry <enzodm at gmail.com> wrote:> This returns true even though the brdb server is down > > MiddleMan.backend_connections.first.connection_status > => true > > I can just attempt to create a new worker and catch > "BackgrounDRb::NoServerAvailable", but is there a better way than this? >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20090116/1fe5061f/attachment.html>