Hi - I cannot run the rake task and I cannot find much on the internet that can assist me with resolving this. it fails loading this file which I dont have.. any ideas would be appreciated
admin$ QUEUE=* rake resque:work --trace
** Invoke resque:work (first_time)
** Invoke resque:preload (first_time)
** Invoke resque:setup (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute resque:setup
** Execute resque:preload
rake aborted!
LoadError: No such file to load -- helpers
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in require'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:inblock in require'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in block in load_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:innew_constants_in'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in load_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:inrequire'
/Users/admin/sites/extendity/app/controllers/account_controller.rb:1:in <top (required)>'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:inload'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in block in load_file'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:innew_constants_in'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in load_file'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:inrequire_or_load'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in depend_on'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:inrequire_dependency'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:468:in block (2 levels) in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:ineach'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:in block in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:ineach'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:in eager_load!'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/resque-1.25.2/lib/resque/tasks.rb:61:inblock (2 levels) in '
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:in call'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:inblock in execute'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:inexecute'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:inmon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:201:inblock in invoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:ininvoke_prerequisites'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:178:in block in invoke_with_call_chain'
/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:inmon_synchronize'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:165:ininvoke'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:inblock (2 levels) in top_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in each'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:inblock in top_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:100:intop_level'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:176:instandard_exception_handling'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:75:in run'
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/bin/rake:33:in'
/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in load'
/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in'
Tasks: TOP => resque:work => resque:preload
never mind on the previous error. i just had a reference to include a file which didnt exist. I removed the include.
I have another issue though
I am using Resque.enqueue_to(queue_name, ClassName, params) and I get this error:
wrong argument type Class (expected Module)
my class file has this:
class MyClass
def self.perform(parameters, item_id)
etc
Hi - I cannot run the rake task and I cannot find much on the internet that can assist me with resolving this. it fails loading this file which I dont have.. any ideas would be appreciated
admin$ QUEUE=* rake resque:work --trace
** Invoke resque:work (first_time)
** Invoke resque:preload (first_time)
** Invoke resque:setup (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute resque:setup
** Execute resque:preload
rake aborted!
LoadError: No such file to load -- helpers
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
require'
block in require'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in
block in load_dependency'
new_constants_in'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:230:in
load_dependency'
require'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in
/Users/admin/sites/extendity/app/controllers/account_controller.rb:1:in
<top (required)>'
load'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:443:in
block in load_file'
new_constants_in'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:633:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:442:in
load_file'
require_or_load'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:342:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:307:in
depend_on'
require_dependency'/Users/admin/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:225:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:468:in
block (2 levels) in eager_load!'
each'/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:467:in
block in eager_load!'
each'/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/railties-4.1.4/lib/rails/engine.rb:465:in
eager_load!'
block (2 levels) in '/Users/admin/.rvm/gems/ruby-2.1.2/gems/resque-1.25.2/lib/resque/tasks.rb:61:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:in
call'
block in execute'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:240:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:in
each'
execute'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:235:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:179:in
block in invoke_with_call_chain'
mon_synchronize'/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in
invoke_with_call_chain'
block in invoke_prerequisites'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:201:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:in
each'
invoke_prerequisites'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:199:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:178:in
block in invoke_with_call_chain'
mon_synchronize'/Users/admin/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb:211:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:172:in
invoke_with_call_chain'
invoke'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/task.rb:165:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:150:in
invoke_task'
block (2 levels) in top_level'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in
each'
block in top_level'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:106:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:115:in
run_with_threads'
top_level'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:100:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:78:in
block in run'
standard_exception_handling'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:176:in
/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/lib/rake/application.rb:75:in
run'
'/Users/admin/.rvm/gems/ruby-2.1.2/gems/rake-10.4.2/bin/rake:33:in
/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in
load'
'/Users/admin/.rvm/gems/ruby-2.1.2/bin/rake:23:in
Tasks: TOP => resque:work => resque:preload