ruby on rails - Can't figure out Delayed::DeserializationError -


i running delayed_job 3.0.5 (delayed_job_active_record 0.4.1) rails 3.2.12. having problems of jobs failing because of "deserialization". here simple example of 1 of failing handlers:

--- !ruby/struct:delayed::performablemethod object: load;project;924951 method: :send_project_open_close_without_delay args: [] 

when try invoke job:

delayed::deserializationerror: job failed load: undefined method `members' nil:nilclass. 

everyone seems think caused ar object no longer exists. in case, can run handler fine:

project.find(924951).send_open_close_without_delay 

what else causing error?

i think experienced issue when upgrade rails 3.2. error got caused yaml handler used delayed job. try adding following config/boot.rb

require 'rubygems' require 'yaml' yaml::engine.yamler = 'syck' 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -