mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1085] [BUG] Unable to delete archived tasks #1532
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#1532
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 @Heachy on GitHub (Nov 26, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1085
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Describe the bug
Unable to delete archived tasks retrieved from ListArchivedTasks.
Environment (please complete the following information):
asynqpackage version v0.25.1To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
Expected behavior
Success to delete archived tasks retrieved from ListArchivedTasks.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
the function
`func (uc *ClusterOpUsecase) cleanArchivedTasks(ctx context.Context) {
}`
@jeffphp commented on GitHub (Dec 19, 2025):
I had the same problem. The underlying cause was that I'm using a Managed Redis Service, which closes idle Redis connection after 5 minutes. By default, Redis Client uses connections forever. When it fails during a transaction, it seems that it happens that the Queue gets corrupted.
I now use Redis.UniversalClient driver with these additional settings and now I don't have these issues anymore:
https://github.com/hibiken/asynq/issues/764#issuecomment-3611269765