-
Notifications
You must be signed in to change notification settings - Fork 77
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
JSON serialization error in admin view when using PickleEncoder #135
Comments
…k view still works by showing a representation of the kwargs which is json serializable
…k view still works by showing a representation of the kwargs which is json serializable
Hey @huubbouma, thanks for the bug report! I am trying to reproduce this issue; I guess, I am lacking your context. In general, according to best practices of working with queues (Dramatiq, Celery, regardless of which one) it is important to pass to actors as simple data (arguments) as possible: So, for example, instead of passing But please, correct me if my understanding of your context is wrong, I am happy to hear more to be able to reproduce it. |
You're absolutely correct and we should use simple data, but my issue is that I'm migrating a hug codebase from another task queue and I don't have the the time now to convert existing code. |
If you use the PickleEncoder for the serialization of the arguments to actors:
DRAMATIQ_ENCODER = "dramatiq.PickleEncoder"
Then an error will appear if you go to the task details in the admin interface:
TypeError: Object of type Application is not JSON serializable
The text was updated successfully, but these errors were encountered: