Add methods to rdb to enqueue all tasks from dead, retry and scheduled

queue
This commit is contained in:
Ken Hibino
2019-12-10 20:28:31 -08:00
parent c0185061eb
commit 0d74c518bf
3 changed files with 190 additions and 1 deletions

View File

@@ -5,13 +5,18 @@ import "github.com/go-redis/redis/v7"
/*
TODOs:
- [P0] enqall command to enq all tasks from "scheduled" "retry", "dead" queue
- [P0] asynqmon del <taskID>, asynqmon delall <qname>
- [P0] asynqmon kill <taskID>, asynqmon killall <qname>
- [P0] Redis Memory Usage, Connection info in stats
- [P0] Processed, Failed count for today
- [P0] Go docs + CONTRIBUTION.md + Github issue template
- [P0] Redis Sentinel support
- [P1] Add Support for multiple queues and priority
- [P1] User defined max-retry count
*/
// Max retry count by default
const defaultMaxRetry = 25
const defaultMaxRetry = 1
// Task represents a task to be performed.
type Task struct {