Skip to content

Conversation

@ocean1
Copy link
Contributor

@ocean1 ocean1 commented Apr 11, 2014

Right now all the task_meta are "double encoded" in a Binary format (mongo BinData), only pickle and msgpack should need this while json and yaml can be saved as a string (actually a "strict" json format could be saved natively in mongo too, but didn't test this), with this patch:

  • Binary format is used only for pickle and msgpack
  • an option is added to the mongo backend to enable it to serialize natively the task_meta

it was not possible to create a kombu mongo serializer since it would have been useless or just needed to check if the object can be serializable (and then it would need to be serialized again) because pymongo don't recognize that we are sending BSON data to it and it would get double encoded (should it be needed a patch could also be submitted upstream to pymongo)

@ocean1 ocean1 closed this Apr 15, 2014
@ocean1
Copy link
Contributor Author

ocean1 commented Apr 18, 2014

the new pr is much cleaner and fully tested #1990

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

Successfully merging this pull request may close these issues.

1 participant