Closed zdennis closed 11 years ago
I'll take a look at this later today and get it merged. Should be able to cut 0.10 soon after. Sorry it's taken me so long to get to it
@zdennis: Thanks again, sorry it's taken me so long to get to this. It looks good though I'm going to refactor to:
Sunspot::Queue.configure do |c|
c.index_job = CustomJob
c.removal_job = CustomJob
end
We only support one worker system at a time, so I don't know that it's worth having configs for each one individually.
This was shipped in 0.10.0
woot! Thanks @gaffneyc !
The above change-set allows the default index/removal jobs for resque and sidekiq to be overridden via the following syntax:
Or without a block accessing the configuration object directly:
There are default jobs provided based on what was being used.