Implement sunspot:solr:ping task
Reported by Bogdan Gusiev | May 27th, 2010 @ 02:21 PM | in 1.3
Hello Mat,
In order to check if solr is up and running before doing
anything
we need to have sunspot:solr:ping task.
(should raise exception if solr doesn't response)
That would be extremely useful as other tasks dependency:
task :spec => ["spec:env", "sunspot:solr:ping"] # check if solr
response in test environment before running specs
namespace :resque do
task :work => ["sunspot:solr:ping"] end
And other application specific tasks.
We are using it in our projects, so can prepare a patch for you.
Thanks,
Bogdan.
Comments and changes to this ticket
-

-

mat December 27th, 2010 @ 02:17 PM
- → Milestone changed from Feature Requests to 1.3
- → Tag changed from ping, rake, solr to feature
-

mat November 26th, 2011 @ 06:40 PM
- → State changed from new to resolved
(from [e7a2dad7e1120e31f00d7cbb91999a3dc2925cc2]) [Closes #121] Updates History https://github.com/sunspot/sunspot/commit/e7a2dad7e1120e31f00d7cbb9...
-

CDel January 10th, 2012 @ 01:11 PM
Hi Mat,
Was this resolved or a won't-fix? The discussion of a patch pull candidate https://github.com/sunspot/sunspot/pull/11 seemed like it wasn't going to happen, but https://github.com/sunspot/sunspot/commit/bf4415bcfcb747ff0fc59d7b9... looks good. Also, if this is fixed, is it available yet? This is a great feature to keep track of background servers - especially for JRuby users who can't use anything with Sunspot.new.
Thanks,
~C
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Awesome Solr interaction for Ruby