taskforcesh / bullmq

BullMQ - Message Queue and Batch processing for NodeJS and Python based on Redis
https://bullmq.io
MIT License
5.89k stars 380 forks source link

Add support for custom serializers #14

Open manast opened 5 years ago

manast commented 5 years ago

https://github.com/OptimalBits/bull/issues/1411

godinja commented 3 months ago

@manast any intention to get this developed?

We have a use case where we (ideally) need to pass Decimal.js types to downstream jobs in a flow.

manast commented 3 months ago

@godinja in your case, couldn't you just serialize the decimal.js types before adding the job data? In other words, it should be easy enough to build a custom serializer on top of the data object that supports your use case.