From 22e6c9d297f997343d1e01ffd9877f6db12e0f4a Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sat, 11 Dec 2021 06:42:47 -0800 Subject: [PATCH] Delete "pending_since" under task-key when state changes to active --- internal/rdb/rdb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/rdb/rdb.go b/internal/rdb/rdb.go index 13d0187..c12b38b 100644 --- a/internal/rdb/rdb.go +++ b/internal/rdb/rdb.go @@ -232,6 +232,7 @@ if redis.call("EXISTS", KEYS[2]) == 0 then if id then local key = ARGV[2] .. id redis.call("HSET", key, "state", "active") + redis.call("HDEL", key, "pending_since") local data = redis.call("HMGET", key, "msg", "timeout", "deadline") local msg = data[1] local timeout = tonumber(data[2])