mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #555] [BUG] UNKNOWN: redis command error: SADD failed: redis: client is closed #2290
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#2290
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 @linchao0815 on GitHub (Oct 11, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/555
Originally assigned to: @hibiken on GitHub.
Describe the bug
client.Enqueue(task)
To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
How do I handle this error ?
@domgolonka commented on GitHub (Oct 12, 2022):
I am getting the same thing
@domgolonka commented on GitHub (Oct 12, 2022):
@linchao0815 I figured it out, the asynq.Client was closing too early.
@linchao0815 commented on GitHub (Oct 13, 2022):
@domgolonka
@MetaverseMan commented on GitHub (Apr 20, 2023):
Figure it out,Same situation, thanks
@avvari-da commented on GitHub (Apr 5, 2024):
How do you fix
asynq.Client was closing too early?@refuse2speak commented on GitHub (Jul 7, 2024):
When you create the client you probably have added a defer function as shown in the example. This is called too early, eg. when the enclosing function returns. You could add the defer function to the main() function so the Task Client is not closed before your main function returns.