ruby on rails - perform not being called for Delayed Jobs -
i'm using delayed_job 2.1.4 collectiveidea, , seems perform method never called though jobs processed , removed queue. missing something?
i'm using rails 3.0.5 on heroku
in controller:
delayed::job.enqueue facebookjob.new
in job class:
class facebookjob def initialize end def perform fb_auths = authentication.where(:provider => 'facebook') fb_auths.each |auth| checkins = fbgraph::user.new('me', :access_token => uri.encode(auth.token)).checkins if checkins != nil checkins.each |checkin| [...] end end end end end
(the whole code: https://gist.github.com/966509)
i had same problem, answer helped me: delayed_job not executing perform method emptying job queue
Comments
Post a Comment