hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
9k stars 659 forks source link

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

Closed Ancxk closed 3 months ago

Ancxk commented 3 months ago

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'?"

Ancxk commented 3 months ago

i used the version v0.24.0

Ancxk commented 3 months ago

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