Sha256: 359dcd851e821b8fb2bbdbcedef82d36e5ba177047286b627f7984ef9ab64e66

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 Bytes

Contents

namespace :thinking_sphinx do
  task :index do
    ThinkingSphinx::Deltas::ResqueDelta.cancel_thinking_sphinx_jobs
  end

  desc "Process stored delta index requests"
  task :resque_delta => :app_env do
    raise "TODO... for now, please just run the workers on your own and make sure to work the :ts_delta queue."
  #   require 'delayed/worker'
  #   require 'thinking_sphinx/deltas/resque_delta'
  #   
  #   Delayed::Worker.new(
  #     :min_priority => ENV['MIN_PRIORITY'],
  #     :max_priority => ENV['MAX_PRIORITY']
  #   ).start
  end
end

namespace :ts do
  desc "Process stored delta index requests"
  task :rd => "thinking_sphinx:resque_delta"
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ts-resque-delta-0.0.6 lib/thinking_sphinx/deltas/resque_delta/tasks.rb
ts-resque-delta-0.0.5 lib/thinking_sphinx/deltas/resque_delta/tasks.rb
ts-resque-delta-0.0.4 lib/thinking_sphinx/deltas/resque_delta/tasks.rb
ts-resque-delta-0.0.3 lib/thinking_sphinx/deltas/resque_delta/tasks.rb
ts-resque-delta-0.0.2 lib/thinking_sphinx/deltas/resque_delta/tasks.rb
ts-resque-delta-0.0.1 lib/thinking_sphinx/deltas/resque_delta/tasks.rb