I can run jobs locally, but when I try and run them on heroku I'm
getting the following error:

Class#publish_events failed with NoMethodError: undefined method
`publish_events' for Class:Class - 0 failed attempts

I shut down the workers and created jobs from the console. I ran
YAML.load on both the handler in the heroku console & locally.  The
object for the heroku env is Class where the object for the local env
is CreatedArticleEventPublisher. If I copy the yaml generated in the
local environment and run YAML.load on it in the heroku environment it
correctly loads the CreatedArticleEventPublisher class. So it seems it
is some sort of serialization problem.

I'm trying to invoke a class method on the
CreatedArticleEventPublisher class in case that make a difference.

Here are the two handlers stored in the database:

from heroku
"--- !ruby/object:Delayed::PerformableMethod \nargs: []\n
\nmethod_name: :publish_events\nobject: !ruby/class
CreatedArticleEventPublisher\n"

local
"--- !ruby/object:Delayed::PerformableMethod\nobject: !ruby/
class:CreatedArticleEventPublisher {}\nmethod_name: :publish_events
\nargs: []\n"

I'm running on a cedar stack with 1.9.2-p290 locally and

gem 'delayed_job', '~> 3.0.0.pre'
gem 'delayed_job_active_record'

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to