#36919: Allow `TaskResult` (and `Task`) to be pickled
-------------------------------------+-------------------------------------
     Reporter:  Jake Howard          |                    Owner:  Varun
         Type:                       |  Kasyap Pentamaraju
  Cleanup/optimization               |                   Status:  assigned
    Component:  Tasks                |                  Version:  6.0
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Jake Howard):

 It would be great if it could be possible not only make this pickable but
 also JSON-serializable?

 JSON serialization of custom objects requires a custom encoder, rather
 than changes to the object directly. This should be doable as part of your
 library rather than Django itself (since it wouldn't be clear how to then
 decode the `TaskContext` (or other `django.task` types) without some side-
 channel metadata stating what the data is.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36919#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019ce303f76a-cf4fea96-c620-4d22-ae2f-8828d6333d07-000000%40eu-central-1.amazonses.com.

Reply via email to