Skip to content

Passing session to Quirrel queue #2641

Answered by MrLeebo
leo-guinan asked this question in Q&A
Discussion options

You must be logged in to vote

You didn't describe the context object you were trying to serialize, but I think you'd be better off specifying the exact attributes from the session data that the job must have in order to run rather than trying to serialize everything. Not only is that going to serialize a lot more data than you need and give you circular reference errors like this, but even if you deleted all of the circular keys you identified from the object today, there's no guarantee that a new circular key wouldn't get added to it tomorrow.

If you pick and choose the input parameters that you send to the job, then you can avoid this entire category of errors.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@leo-guinan
Comment options

@MrLeebo
Comment options

Answer selected by Skn0tt
Comment options

You must be logged in to vote
0 replies
Comment options

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