[GH-ISSUE #1081] how to delete Recent History Enqueued in scheduler? #522

Open
opened 2026-03-02 05:38:00 +03:00 by kerem · 1 comment
Owner

Originally created by @seth-shi on GitHub (Oct 21, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1081

this place show Recent History Enqueued, but if have to many(100M), how to delete it?

Originally created by @seth-shi on GitHub (Oct 21, 2025). Original GitHub issue: https://github.com/hibiken/asynq/issues/1081 this place show Recent History Enqueued, but if have to many(100M), how to delete it?
Author
Owner

@thomas4019 commented on GitHub (Nov 10, 2025):

Hi @seth-shi, as explained in the Task Retention and Result, you can use asynq.Retention to choose low long a task should be kept in the recent history, to avoid having that happen.

For getting rid of the data already in there you can use some of the options on https://pkg.go.dev/github.com/hibiken/asynq#Inspector or you could stop enqueing new tasks, finish everything, clear your redis and then start up again

<!-- gh-comment-id:3508986909 --> @thomas4019 commented on GitHub (Nov 10, 2025): Hi @seth-shi, as explained in the [Task Retention and Result](https://github.com/hibiken/asynq/wiki/Task-Retention-and-Result), you can use asynq.Retention to choose low long a task should be kept in the recent history, to avoid having that happen. For getting rid of the data already in there you can use some of the options on https://pkg.go.dev/github.com/hibiken/asynq#Inspector or you could stop enqueing new tasks, finish everything, [clear your redis](https://stackoverflow.com/questions/6851909/how-do-i-delete-everything-in-redis) and then start up again
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#522
No description provided.