From 698fdcfcb25df156568f3c3099449bf1a85e7280 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Wed, 25 Dec 2019 19:57:23 -0800 Subject: [PATCH] fix: Change max dead tasks count to 100 --- internal/rdb/rdb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/rdb/rdb.go b/internal/rdb/rdb.go index 12834d7..5069721 100644 --- a/internal/rdb/rdb.go +++ b/internal/rdb/rdb.go @@ -183,7 +183,7 @@ func (r *RDB) Retry(msg *base.TaskMessage, processAt time.Time, errMsg string) e // the error message to the task. // It also trims the set by timestamp and set size. func (r *RDB) Kill(msg *base.TaskMessage, errMsg string) error { - const maxDeadTask = 10 + const maxDeadTask = 100 const deadExpirationInDays = 90 bytesToRemove, err := json.Marshal(msg) if err != nil {