Skip to content

Custom serializers #56

Closed
Closed

Description

@quizmoon

Would be great to have custom serializers in set/get results, or at least JSON, like it is implemented in the main project TaskIQ.

Activity

  1. s3rius commented on Apr 19, 2024

    @s3rius
    Member

    True. Will add soon.

  2. s3rius commented on Apr 19, 2024

    @s3rius
    Member

    Look, I've checked the code and you can do so already. You can set custom serializers in the constructor.

  3. quizmoon commented on Apr 22, 2024

    @quizmoon
    Author

    @s3rius , in the backend part it is hardcoded, e.g in "set_result":

            redis_set_params: Dict[str, Union[str, bytes, int]] = {
                "name": task_id,
                "value": pickle.dumps(result),
            }
    
  4. s3rius commented on Apr 22, 2024

    @s3rius
    Member

    I see now. Accidentally skipped it. We will add a new parameter to the constructor.

  5. changed the title [-]Customs serializers[/-] [+]Custom serializers[/+] on Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions