mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #746] [BUG] Serializing/deserializing objects (eg: asynq.Client) into a task doesn't work as expected #2389
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dray92 on GitHub (Sep 22, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/746
Originally assigned to: @hibiken on GitHub.
Describe the bug
For testing purposes, I have a task obj that stores a reference to the
asynq.Clientobject (I have tested w/ both pointer and non-pointer). When the task is deserialized and processed by the worker, the field forasync.Clientis not set.To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
Expected behavior
Worker is able to deserialize the client object and use it to publish a new task.
Screenshots
If applicable, add screenshots to help explain your problem.Environment (please complete the following information):
asynqpackage: v0.24.1Additional context
Add any other context about the problem here.
@dray92 commented on GitHub (Sep 22, 2023):
The workaround when people face issues like these: