I was not very lucky with the background queues at the moment. I am trying to get Resque to work. I installed redis and gem Resque.
Redis is running. The worker is working (rake resque: work QUEUE = simple). Using the web interface, I see that the worker is working and waiting for work.
When I run "rake get_updates", the job is queued but not executed. I tried this with both def self.perform and def def.
clockwork.rake
task :get_updates => :environment do Resque.enqueue(GetUpdates) end
Class file (application / workers / get_updates.rb)
class GetUpdates @queue = :simple def perform puts "Running GetUpdates" end end
Error message
undefined method `perform' for GetUpdates:Class /Users/lukesmith/.rvm/gems/ruby-1.9.3-p327/bundler/gems/resque-620d354454b8/lib/resque/job_performer.rb:79:in `perform_job' /Users/lukesmith/.rvm/gems/ruby-1.9.3-p327/bundler/gems/resque-620d354454b8/lib/resque/job_performer.rb:46:in `execute_job' /Users/lukesmith/.rvm/gems/ruby-1.9.3-p327/bundler/gems/resque-620d354454b8/lib/resque/job_performer.rb:25:in `perform'
source share