#36919: Allow `TaskResult` (and `Task`) to be pickled
-------------------------------------+-------------------------------------
     Reporter:  Jake Howard          |                     Type:
                                     |  Cleanup/optimization
       Status:  new                  |                Component:  Tasks
      Version:  6.0                  |                 Severity:  Normal
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
 As part of implementing some task backends, it can be useful to pickle a
 `TaskResult` to pass it around implementation.

 Since it's a `dataclass` most of the implementation is already there - the
 main issue is that `Task` itself can't be pickled as it references a
 function. Replacing that with a string reference during pickling will
 likely resolve the current issues.

 The implementation isn't especially complex, so I'm not opposed to this
 being closed and left to backend implementers to deal with instead.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36919>
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/0107019c4db597fb-c2fcdfda-ab8c-4972-a12a-1c0d5b32dbbb-000000%40eu-central-1.amazonses.com.

Reply via email to