2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-23 10:16:12 +08:00
Herb Stahl
2022-09-01 14:13:39 -07:00
parent c70ff6a335
commit a718697b1f
10 changed files with 191 additions and 59 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