[GH-ISSUE #847] [QUESTION] How to delete tasks that have been archived and are not in the "asynq:{default}:archived" zset? #2438

Closed
opened 2026-03-15 20:30:26 +03:00 by kerem · 3 comments
Owner

Originally created by @Ancxk on GitHub (Mar 19, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/847

Originally assigned to: @hibiken on GitHub.

Our project doesn't need to keep track of archived task lists.
Due to lack of cleanup previously, there are already 2 million records of archived tasks with keys like 'asynq:{default}:t:*'.
The provided Inspector.DeleteAllArchivedTasks() function can only delete tasks associated with 'asynq:{default}:archived' zset, which has a maximum of 9999 entries.
Is it only to manually scan and delete archived tasks that are not listed in 'asynq:{default}:archived'?"

Originally created by @Ancxk on GitHub (Mar 19, 2024). Original GitHub issue: https://github.com/hibiken/asynq/issues/847 Originally assigned to: @hibiken on GitHub. Our project doesn't need to keep track of archived task lists. Due to lack of cleanup previously, there are already 2 million records of archived tasks with keys like 'asynq:{default}:t:*'. The provided `Inspector.DeleteAllArchivedTasks()` function can only delete tasks associated with 'asynq:{default}:archived' zset, which has a maximum of 9999 entries. Is it only to manually scan and delete archived tasks that are not listed in 'asynq:{default}:archived'?"
kerem 2026-03-15 20:30:26 +03:00
Author
Owner

@Ancxk commented on GitHub (Mar 19, 2024):

i used the version v0.24.0

<!-- gh-comment-id:2006351711 --> @Ancxk commented on GitHub (Mar 19, 2024): i used the version v0.24.0
Author
Owner

@Ancxk commented on GitHub (Mar 19, 2024):

I have already seen the contents of v0.25.0 Release watch,It will be resolved. I am looking forward to it.https://github.com/hibiken/asynq/issues/811

<!-- gh-comment-id:2007162384 --> @Ancxk commented on GitHub (Mar 19, 2024): I have already seen the contents of v0.25.0 Release watch,It will be resolved. I am looking forward to it.[https://github.com/hibiken/asynq/issues/811](url)
Author
Owner

@cobain commented on GitHub (Aug 4, 2024):

I met the same issue about archived task, which has 9999 entries currently. we need a way to delete them.

<!-- gh-comment-id:2267572171 --> @cobain commented on GitHub (Aug 4, 2024): I met the same issue about archived task, which has 9999 entries currently. we need a way to delete them.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2438
No description provided.