Skip to content

What is the purpose of serialized_params ? #1238

Answered by bensheldon
marckohlbrugge asked this question in Q&A
Discussion options

You must be logged in to vote

The column serialized_params in the database is the serialization of a job that Active Job produces. When enqueuing a job, Active Job expects the job to be serialized out to that hash to be stored in the job backend (in this case, GoodJob), and then when executing the job, the backend passes that hash back into Active Job which deserializes/hydrates it back into a job object so Active Job can perform it.

GoodJob itself uses some of those values during queue operations or to make querying via the Dashboard easier (it's not easy or performant to reach into that serialized data). You're correct that it is duplicated.

It's totally fine to change the GoodJob columnar values directly, because t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marckohlbrugge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants