You must serialize the lesson because this job will go to redis before being deserialized back to ruby by the worker. Serializing it just to the id is the best practice because lesson parameters may change before the job is worked, and you want the notification to contain the most recent parameters.