Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delayed::DeserializationError in rails 3 #183

Closed
romaluca opened this issue Dec 24, 2010 · 5 comments
Closed

Delayed::DeserializationError in rails 3 #183

romaluca opened this issue Dec 24, 2010 · 5 comments

Comments

@romaluca
Copy link

Hi i'm using delayed job gem for my site. In rails 2.3.8 i had no problems, but when i pass to rails 3 the process starts but in the delayed_jobs table of db i receive this error:

{Delayed::DeserializationError
/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/serialization/active_record.rb:7:in yaml_new'\n/accounts/lromagnoli/lib/ruby/1.8/yaml.rb:133:intransfer'\n/accounts/lromagnoli/lib/ruby/1.8/yaml.rb:133:in node_import'\n/accounts/lromagnoli/lib/ruby/1.8/yaml.rb:133:inload'\n/accounts/lromagnoli/lib/ruby/1.8/yaml.rb:133:in load'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/backend/base.rb:75:inpayload_object'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/backend/base.rb:83:in invoke_job'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:119:inrun'\n/accounts/lromagnoli/lib/ruby/1.8/timeout.rb:62:in timeout'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:119:inrun'\n/accounts/lromagnoli/lib/ruby/1.8/benchmark.rb:308:in realtime'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:118:inrun'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:176:in reserve_and_run_one_job'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:103:inwork_off'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:102:in times'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:102:inwork_off'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:77:in start'\n/accounts/lromagnoli/lib/ruby/1.8/benchmark.rb:308:inrealtime'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:76:in start'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:73:inloop'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/worker.rb:73:in start'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:100:inrun'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:79:in run_process'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:250:incall'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:250:in start_proc'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/daemonize.rb:199:incall'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/daemonize.rb:199:in call_as_daemon'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:254:instart_proc'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/application.rb:294:in start'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/controller.rb:70:inrun'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:193:in run_proc'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:incall'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons/cmdline.rb:112:in catch_exceptions'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/daemons-1.1.0/lib/daemons.rb:192:inrun_proc'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:78:in run_process'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:72:indaemonize'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:70:in times'\n/accounts/lromagnoli/lib/ruby/gems/1.8/gems/delayed_job-2.1.2/lib/delayed/command.rb:70:indaemonize'\n/accounts/lromagnoli/www/nerto/script/delayed_job:5

How can i fix it?

thanks

@ZenCocoon
Copy link

Got the same issue. Any any on this issue?

@dhruvg
Copy link

dhruvg commented Feb 12, 2011

Same issue, can someone help?

Thanks!

@curtp
Copy link

curtp commented Feb 22, 2011

Same here. The majority of my jobs run fine. I have one in particular which throws the Deserialization error. The job that works is going against an AR model which has been saved. The job that fails is working on an unsaved AR model object. The AR model is the same in both jobs.

@betamatt
Copy link
Collaborator

betamatt commented Jun 8, 2011

I believe this occurs when you run a job against an unsaved or deleted AR object since the deserialization for AR loads the record by id. An exception should probably be thrown if you attempt to delay a method on an unsaved AR object.

@knagode
Copy link

knagode commented Feb 27, 2019

We are having same isssue with Octopus gem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants