Actually, what you're describing above is correct:
You want to queue an id, and sometimes other required information to identify the record you want to pull from the database, and NOT an object, especially if it's an ActiveRecord::Base
object.
Queuing an object is problematic and can lead to issues. Check my answer at:
https://stackoverflow.com/a/21751030/226255
You can test if your second application is pulling correctly by doing the following in console: (make sure to push a Delayed::Job
to queue first)
Delayed::Job.first.invoke_job