Nathan Manousos
Nathan Manousos

Reputation: 13848

Why is delayed job not creating a 'handler' when I use delay?

I'm trying to use delayed job for the first time in my rails 3 app.

I have a method that looks something like this, which calls a long running method which I want to put into the delayed job queue.

def complete_order()
    self.paid_at = Time.now
    self.delay.long_running_stuff
end

The result of running this method is an entry in my delayed_jobs table with a NULL value in the handler field.

I have no idea why and can't think of how to debug this. Any ideas why?

Upvotes: 0

Views: 417

Answers (1)

Nathan Manousos
Nathan Manousos

Reputation: 13848

The problem was attr_accessible

I found a solution here http://groups.google.com/group/delayed_job/browse_thread/thread/60b6ae55a3304c08

Upvotes: 0

Related Questions