2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-23 10:16:12 +08:00

feature: configurable archive ttl and max archived size

This commit is contained in:
fajrifernanda
2024-12-04 13:23:04 +07:00
parent 106c07adaa
commit 9261e4318c
8 changed files with 172 additions and 35 deletions

View File

@@ -31,6 +31,11 @@ const DefaultQueueName = "default"
// DefaultQueue is the redis key for the default queue.
var DefaultQueue = PendingKey(DefaultQueueName)
const (
DefaultMaxArchiveSize = 10000 // maximum number of tasks in archive
DefaultArchivedExpirationInDays = 90 // number of days before an archived task gets deleted permanently
)
// Global Redis keys.
const (
AllServers = "asynq:servers" // ZSET