lacquer
lacquer copied to clipboard
Job failed to load: undefined class/module Lacquer::DelayedJobJob
I've updated to the latest gem release, and when I set the backend to delayed job, the varnish purge will not execute with this last_error:
Job failed to load: undefined class/module Lacquer::DelayedJobJob
Any clue? Is there somewhere I need to require the file that defines the DelayedJobJob class?
I was able to work around this by putting:
require "lacquer/delayed_job_job"
in config/application.rb. I know that file is required when the job is actually performed, so I'm not sure why it's giving me problems. FTR I'm on Rails 3.2.1 with the latest varnish and delayed_job. Note that I am using the mongoid version of DJ.
FYI, this is probably related to this DJ bug:
https://github.com/collectiveidea/delayed_job/issues/337
thanks. That fixed worked for me. But I needed to add the require "lacquer/delayed_job_job" to my job
require "lacquer/delayed_job_job"
class PaymentJob < Struct.new(:occasion) ... end