Resque github page says (https://github.com/defunkt/resque)
... your jobs should only accept arguments that can be encoded in JSON.
In addition, there is an effect that you must take into account: the object you are transmitting is copied. Let's say this is a database entry. If later, when the task will be executed, this object will be changed in the database, the work will not notice, it will work on its own copy. Depending on your requirements, this may or may not be desirable behavior.
If you pass the id
this object, you can get the latest version of this job.
Sergio Tulentsev
source share