Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing Set in job data param results in empty object #1303

Closed
chaipedada opened this issue Jul 5, 2022 · 2 comments
Closed

Passing Set in job data param results in empty object #1303

chaipedada opened this issue Jul 5, 2022 · 2 comments

Comments

@chaipedada
Copy link

await sendQueue.add( jobID, { stringSet: testSet }, { delay: delay, jobId: jobID } );
where testSet is Set. Logging the job.data.stringSet in the processor shows an empty object {}

@roggervalf
Copy link
Collaborator

hi @chaipedada, could you please provide us a test case to replicate this

@manast
Copy link
Contributor

manast commented Jul 7, 2022

@chaipedada you can only pass JSON serializable data, if testSet is a set, as it is not JSON serializable it will not work.

@manast manast closed this as completed Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants