Skip to content
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

Custom serializers #56

Closed
quizmoon opened this issue Apr 19, 2024 · 4 comments · Fixed by #57
Closed

Custom serializers #56

quizmoon opened this issue Apr 19, 2024 · 4 comments · Fixed by #57

Comments

@quizmoon
Copy link

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

@s3rius
Copy link
Member

s3rius commented Apr 19, 2024

True. Will add soon.

@s3rius
Copy link
Member

s3rius commented Apr 19, 2024

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

@quizmoon
Copy link
Author

quizmoon commented Apr 22, 2024

@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),
        }

@s3rius
Copy link
Member

s3rius commented Apr 22, 2024

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

@quizmoon quizmoon changed the title Customs serializers Custom serializers Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants