How to resolve deserialization error in delayed job?

前端 未结 7 2115
遇见更好的自我
遇见更好的自我 2021-02-06 22:38

I am trying to use DelayedJob and the job is failing, giving the following error in the database:

{Delayed::DeserializationError
/Library/Ruby/Gems/1.8/gems/delayed_j         


        
7条回答
  •  感动是毒
    2021-02-06 23:01

    It's not really a deserialization error, it's an ActiveRecord record-not-found error on a simple Model.find(id) query.

    If you want to know the details, log them in the delayed_job-2.1.3/lib/delayed/serialization/active_record.rb file, in the rescue statement, just before delayed-job stupidly raises the DeserializationError and throws the useful information away.

提交回复
热议问题