Skip to content

Add JSON serialization methods for Task and TaskResult classes #182

Description

@codingjoe

Code of Conduct

  • I agree to follow Django's Code of Conduct

Feature Description

Add JSON serialization methods for Task and TaskResult classes. Both ways, from and to JSON.

Problem

The task framework already enforces call args and kwargs to be JSON serializable. However, there are not handy functions that can serialize and deserialize a TaskResult. This burden currently falls on the backends, which will always be awkward with the frozen dataclasses.

Request or proposal

proposal

Additional Details

No response

Implementation Suggestions

@RealOrangeOne has already done the most homework here. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Idea

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions