ruby on rails - Jobs with Resque gives "Don't know how to build task 'jobs:work'" on Heroku -



ruby on rails - Jobs with Resque gives "Don't know how to build task 'jobs:work'" on Heroku -

i followed tutorial @ https://devcenter.heroku.com/articles/queuing-ruby-resque queue , run background jobs in rails app. after queueing jobs, doesn't seem run of jobs since in console can see job has not been processed

>resque.info => {:pending=>1, :processed=>0, :queues=>1, :workers=>0, :working=>0, :failed=>0, :servers=>["redis://dory.redistogo.com:9826/0"], :environment=>"production"}

if seek (locally)

bundle exec rake jobs:work

i get

rake aborted! don't know how build task 'jobs:work'

on heroku, if try

heroku run rake jobs:work

i 1 time again `don't know how build task'

in rakefile, have require 'resque/tasks' , in procfile have

resque: env term_child=1 bundle exec rake jobs:work resque: env term_child=1 bundle exec rake jobs:work

i have resque , redis gems in gemfile, not delayed_job.

update: here rakefile:

#!/usr/bin/env rake require file.expand_path('../config/application', __file__) guard::application.load_tasks

/lib/tasks empty. have worker in app/workers enqueueing in controller.

this doesn't appear have heroku, if doesn't work locally. you'll have reveal of source help people help you. example, what's rakefile like? demo app in article defines 1 rake task task. have defined rake task , added appropriate gem references?

ruby-on-rails ruby heroku rake resque

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -