+2  A: 

Do you run ./script/delayed_job with the -e production flag set?

gpaul
You run the fork I'm using with `RAILS_ENV=production script/delayed_job start`
John Topley
+1  A: 

Does anything appear in log/delayed_job.log? You mentioned the production log, but delayed job has its own log.

  • [JOB] acquiring lock on PreviewImageJob

You might try making a separate class instead of using the _later() method.

class PreviewImageJob < Struct.new(:item_id)
  def perform
    item = Item.find(item_id)
    item.generate_interior_images!
  end
end
wesgarrison
I don't have a log file for Delayed Job. Is it a configuration option? I tried using the separate class - it worked in development but not in production.
John Topley
Production log directory writable?'touch log/delayed_job.log'? Mine just appeared when I started up, so I remember.
wesgarrison
+1  A: 

John,

While I too used the collective Idea fork, I found that Tobi's script works too. I just need a tmp/pid directory (which you may have) and you get the log file and can cross reference this file with what your error column says in your Delayed::Job.first record (or whatever job it is of course). Script for running as a daemon from tobi fork

Oh, and you did restart, if you made changes right? Had to ask.

pjammer
I can't explain why, but switching to the original Delayed Job fixed it!
John Topley